/* --- Global Variables (Matching main.css) --- */
:root {
    --color-primary: #003b5c; /* Deep, Trustworthy Blue (Navy) */
    --color-secondary: #4ecdc4; /* Soft Cyan/Aqua (Accent 1 - Professional) */
    --color-accent: #ffb700; /* Subtle Gold/Metallic Yellow (Accent 2 - Luxury) */
    --color-text-dark: #333333;
    --color-text-light: #f4f4f4;
    --color-bg-dark: #002b46; /* Darker Blue/Almost Black for background */
    --font-family-primary: 'Poppins', sans-serif;
}

/* --- Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-primary);
    background: var(--color-bg-dark); /* Dark background for professional feel */
    color: var(--color-text-light);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: var(--color-secondary);
    transition: color 0.3s;
}

a:hover {
    color: var(--color-accent);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header & Navigation (Consistent with main page) --- */
.main-header {
    background-color: var(--color-primary);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 40px; /* Consistent logo size */
    border-radius: 50%;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-links a {
    color: var(--color-text-light);
    font-weight: 400;
}

.nav-links a:hover {
    color: var(--color-secondary);
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.auth-buttons a {
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
}

.btn-signin {
    border: 1px solid var(--color-secondary);
    color: var(--color-secondary);
}

.btn-signin:hover {
    background-color: var(--color-secondary);
    color: var(--color-bg-dark);
}

.btn-signup {
    background-color: var(--color-accent);
    color: var(--color-bg-dark);
}

.btn-signup:hover {
    background-color: var(--color-secondary);
}

/* --- Main Form Layout --- */
.signup-page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
}

.form-card {
    background: var(--color-primary); /* Use navy background for the card */
    padding: 40px;
    border-radius: 10px;
    max-width: 700px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--color-text-light);
}

.form-subtitle {
    font-size: 1rem;
    margin-bottom: 30px;
    color: #b0c4cc;
}

.highlight-gold {
    color: var(--color-accent);
}

/* --- Form Grid Layout --- */
.signup-form {
    text-align: left;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.input-block {
    display: flex;
    flex-direction: column;
}

.full-width {
    grid-column: span 2;
}

label {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #b0c4cc; /* Lighter text for labels */
    font-weight: 400;
}

/* --- Form Inputs (Uniform Professional Style) --- */
.signup-form input:not([type="checkbox"]),
.signup-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-secondary);
    border-radius: 5px;
    background: var(--color-bg-dark); /* Dark input fields */
    color: var(--color-text-light);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.signup-form input:focus,
.signup-form select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.3);
}

.signup-form select {
    /* Style for dropdown */
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%234ecdc4'%3e%3cpath d='M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.7em top 50%;
    background-size: 0.65em auto;
    padding-right: 2em; /* Ensure text doesn't overlap arrow */
}

/* --- Terms and Conditions --- */
.terms-row {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: #b0c4cc;
    margin-bottom: 30px;
}

.terms-row input[type="checkbox"] {
    margin-right: 10px;
    /* Custom checkbox styling can be added here */
}

.terms-row a {
    color: var(--color-secondary);
}

.terms-row a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

/* --- Submit Button (CTA) --- */
.cta-submit-btn {
    background-color: var(--color-accent);
    color: var(--color-bg-dark);
    border: none;
    padding: 14px 20px;
    width: 100%;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.cta-submit-btn:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
}

/* --- Sign In Link --- */
.signin-link {
    margin-top: 25px;
    font-size: 1rem;
    color: #b0c4cc;
}

.link-cyan {
    color: var(--color-secondary);
    font-weight: 600;
}

.link-cyan:hover {
    color: var(--color-accent);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }
    
    .nav-links ul {
        gap: 15px;
    }

    .form-card {
        padding: 30px 20px;
    }

    .form-grid {
        grid-template-columns: 1fr; /* Stack columns vertically on mobile */
    }

    .full-width {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    .form-title {
        font-size: 1.8rem;
    }
    
    .cta-submit-btn {
        font-size: 1rem;
        padding: 12px 20px;
    }
    
    .terms-row {
        font-size: 0.9rem;
    }
}