/* 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 {
    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: 70px;
}

.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-group input:focus {
    outline: 2px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 102, 0, 0.5);
}


/* Common input styling for both text and select */
.input-group input,
.input-group select {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    background-color: var(--input-bg, #f0f0f0);
    color: var(--text-color, #333);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    appearance: none; /* remove default browser styling */
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

/* Focus effect for both input and select */
.input-group input:focus,
.input-group select:focus {
    outline: 2px solid var(--primary-color, #ff6600);
    box-shadow: 0 0 10px rgba(255, 102, 0, 0.5);
}

/* Custom arrow for select dropdown */
.input-group select {
    padding-right: 40px; /* space for arrow */
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23333' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
}


/* Nationality Input (Datalist) */
.input-group.nationality label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.input-group.nationality input[list] {
    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;
    cursor: text;
}

/* Hover effect */
.input-group.nationality input[list]:hover {
    background-color: #181832;
}

/* Focus effect (same as other fields) */
.input-group.nationality input[list]:focus {
    outline: 2px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 102, 0, 0.5);
}

/* Fix dropdown (Chrome/Edge) dark text */
datalist option {
    background-color: #1c1c2e;
    color: white;
    padding: 5px;
}


/* 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; 
}




.hidden { display: none; }
#loadingOverlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6); z-index: 50;
    display: none; justify-content: center; align-items: center;
    color: white; font-size: 1.25rem; font-weight: bold;
    animation: pulse 1.2s infinite;
}
@keyframes pulse {0%,100%{opacity:1}50%{opacity:0.6}}
input[type="tel"] {-moz-appearance: textfield;}


/* ============================= */
/*       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: 180px;
        height: 180px;
        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;
    }
}

/* ---------- Mobile (≤ 768px) ---------- */
@media (max-width: 768px) {
    .signup-card {
        width: 500px;
        padding: 25px;
        margin-top: 100px;
        font-size: 2rem;
    }

    .header {
        padding: 20px 60px;
    }

    .logo img {
        width: 130px;
        height: 130px;
        margin-top: 50px;
    }

    .signup-card h2 {
        font-size: 1.8rem;
    }

    .input-group label {
        font-size: 1rem;
    }

    .input-group input,
    .input-group select {
        padding: 10px 12px;
        font-size: 1.4rem;
    }

    .btn-signup {
        padding: 10px 12px;
        font-size: 1.4rem;
    }

    .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: 100px;
        height: 100px;
        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;
    }
}
