/* General Styles */
:root {
    --primary-color: #ff6600; /* Orange for buttons/accents */
    --background-color: #121825; /* Dark navy background */
    --card-color:  #1d283b; /* Slightly lighter dark for the card */
    --text-color: #ffffff;
    --input-bg: #131323; /* Very dark background for input fields */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Header & Logo (Matching Homepage Style) */
.header {
    width: 100%;
    position: absolute; /* Allows form to be centered below it */
    top: 0;
    left: 0;
    padding: 20px 140px;
    margin: 0 auto;
    background-color: transparent; /* Assuming the main background is dark */
}

.logo {
    margin-left: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    /* Placeholder size for the Pegasus logo */
    width: 100px;
    height: 100px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    
}

.logo p {
    font-size: 14px;
    font-weight: 300;
    margin-top: 5px; /* Adjust for vertical alignment */
    color: gray;
}


/* Sign Up Card Layout */
.signup-card {
    background-color: var(--card-color);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    width: 450px;
    max-width: 600px; /* Keeps the form focused and clean */
    text-align: center;
    margin-top: 50px;
}

.signup-card h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 30px;
}

/* Form Styles */
.signup-form {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Space between input groups */
}

.input-group {
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    background-color: var(--input-bg);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: 2px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 102, 0, 0.5);
}

/* Button Styling */
.btn-signup {
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.btn-signup:hover {
    background-color: #ff8533; /* Slightly lighter orange on hover */
}

.btn-signup:active {
    transform: scale(0.98);
}

/* Login Link */
.login-link {
    margin-top: 25px;
    font-size: 0.9rem;
}

.login-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.login-link a:hover {
    text-decoration: underline;
}

.input-wrapper {
    position: relative; 
}


.pw-toggle {
    position: absolute;
    
    right: 12px; 
    top: 70%;
    transform: translateY(-50%);
    
    cursor: pointer;
    font-size: 1.0rem;
    color: #999999;
    z-index: 10; 
    transition: color 0.2s ease; 
}

.pw-toggle:hover {
    color: var(--primary-color); 
}

.input-wrapper input {
   
    padding: 12px 45px 12px 15px; 
}

.forgot-password-link {
    width: 100%;
    text-align: right;
}

.forgot-password-link a {
    color: white; 
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 14px; 
    font-weight: 400;
}

.forgot-password-link a:hover {
    text-decoration: underline;
    color: #DDDDDD; 
}
/* Back Button Positioning and Styling */
.back-button {
    position: absolute;
    left: 70px; 
    top: 50px; 
    font-size: 1.8rem; 
    color: var(--primary-color);
    text-decoration: none; 
    cursor: pointer;
    transition: color 0.3s ease;
}

.back-button:hover {
    color: #ff8533; 
}


/* ============================= */
/*       RESPONSIVE DESIGN       */
/* ============================= */

/* ---------- Tablet (≤ 1024px) ---------- */
@media (max-width: 1024px) {
    .signup-card {
        width: 600px;
        padding: 30px;
        margin-top: 100px;
        font-size: 2rem;
    }

    .header {
        padding: 20px 60px;
    }

    .logo img {
        width: 150px;
        height: 150px;
        margin-top: 50px;
    }

    .signup-card h2 {
        font-size: 1.8rem;
    }

    .input-group label {
        font-size: 1.4rem;
    }

    .input-group input,
    .input-group select {
        padding: 10px 12px;
        font-size: 2rem;
    }

    .btn-signup {
        padding: 10px 12px;
        font-size: 2rem;
    }

    .back-button {
        left: 50px;
        top: 40px;
        font-size: 1.6rem;
    }
    .forgot-password-link {
    width: 100%;
    text-align: right;
    margin-top: 0%;

}

}

/* ---------- Mobile (≤ 768px) ---------- */
@media (max-width: 768px) {
    .signup-card {
        width: 500px;
        padding: 25px;
        margin-top: 100px;
        font-size: 1.5rem;
    }

    .header {
        padding: 20px 60px;
    }

    .logo img {
        width: 80px;
        height: 80px;
        margin-top: 50px;
    }

    .signup-card h2 {
        font-size: 1.3rem;
    }

    .input-group label {
        font-size: 1rem;
    }

    .input-group input,
    .input-group select {
        padding: 10px 12px;
        font-size: 1.2rem;
    }

    .btn-signup {
        padding: 10px 12px;
        font-size: 1.2rem;
    }

    .back-button {
        left: 50px;
        top: 40px;
        font-size: 1.6rem;
    }
}

/* ---------- Small Mobile (≤ 480px) ---------- */
@media (max-width: 480px) {
    .signup-card {
        width: 350px;
        padding: 25px;
        margin-top: 100px;
        font-size: 2rem;
    }

    .header {
        padding: 20px 60px;
    }

    .logo img {
        width: 50px;
        height: 50px;
        margin-top: 50px;
    }
    .logo h1{
        font-size: 0.7rem;
    }
    .logo p{
        font-size: 0.7rem;
    }

    .signup-card h2 {
        font-size: 1rem;
    }

    .input-group label {
        font-size: 0.7rem;
    }

    .input-group input,
    .input-group select {
        padding: 10px 12px;
        font-size: 1.2rem;
    }

    .btn-signup {
        padding: 10px 12px;
        font-size: 1.2rem;
    }

    .back-button {
        left: 50px;
        top: 40px;
        font-size: 1.6rem;
    }
}
