/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

:root {
    --primary-color: #073884;
    --primary-dark: #769fdd;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --error-color: #ef4444;
    --background-gradient: linear-gradient(135deg, #818cf8, #6366f1);
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-image: url('../images/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Container styles */
.container {
    width: 100%;
    max-width: 600px;
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: relative;
    margin: 0 auto;
}

/* Form section - Right side */
.form-section {
    width: 100%;
    margin: 0 auto;
}

/* Verification form styles */
.form-box.verification {
    text-align: center;
    padding: 2rem;
}

.form-box.verification h1 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.form-box.verification .pin-input {
    width: 200px;
    margin: 1rem auto;
    padding: 0.75rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-size: 1.1rem;
    text-align: center;
}

.form-box.verification button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

.form-box.verification button:hover {
    background-color: var(--primary-dark);
}

.form-box.verification .user-email {
    color: var(--primary-color);
    font-weight: 600;
}

/* Form styles */
.form-container {
    width: 100%;
    margin: 0 auto;
}

.form-tabs {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: none;
    color: var(--text-light);
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.form-content {
    display: none;
    width: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: relative;
}

/* Login form specific styles */
.login-form-wrapper {
    width: 500px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    background-color: white;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Signup form specific styles */
#signupForm.form-content {
    width: 100%;
    padding-right: 0;
}

.form-content.active {
    display: block;
    opacity: 1;
}

.login-email,
.login-password {
    width: 400px;
    margin: 0 auto;
}


/* Login form specific styles */
#loginForm.form-content {
    width: 100%;
    margin: 0 auto;
}

.login-form-wrapper .input-group {
    margin-bottom: 2rem;
}

.login-inputs {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-inputs input {
    padding: 1rem 1.25rem;
    font-size: 1.05rem;
    height: 3.5rem;
    width: 400px;
    box-sizing: border-box;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.login-inputs .primary-btn {
    padding: 1rem;
    font-size: 1.05rem;
    margin-top: 1.5rem;
    height: 3.2rem;
    width: 400px;
}

/* Specific styling for login form elements */
.login-form-wrapper h1 {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    text-align: center;
}

.text-center {
    text-align: center;
}

/* Social login styling */
.social-login {
    text-align: center;
    margin-top: 20px;
}

.employer-login {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.employer-login-link {
    color: #4A90E2;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.employer-login-link:hover {
    color: #357ABD;
    text-decoration: underline;
}

.social-login p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.social-buttons {
    display: flex;
    justify-content: center;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.google-btn:hover {
    background-color: #f8f9fa;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.google-btn img {
    height: 1.5rem;
    margin-right: 0.75rem;
}

/* Specific styling for signup form elements */
#signupForm .input-group {
    margin-bottom: 1.5rem;
}

#signupForm input,
#signupForm select,
#signupForm textarea {
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

#signupForm .primary-btn {
    padding: 0.875rem;
    font-size: 1rem;
}

h1 {
    font-size: 1.875rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-weight: 700;
}

.input-group {
    margin-bottom: 1.75rem;
}

.form-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.form-row .input-group {
    flex: 1;
    min-width: 0; /* Prevents flex items from overflowing */
    margin-bottom: 0;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-dark);
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: #fff;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

textarea {
    min-height: 100px;
    resize: vertical;
}

/* Verification Form Styles */
.form-box.verification {
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.verification-message {
    text-align: center;
    margin-bottom: 2rem;
    color: #374151;
}

.user-email {
    font-weight: bold;
    color: var(--primary-color);
    display: block;
    margin-top: 0.5rem;
}

.pin-input-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.pin-input {
    width: 200px;
    text-align: center;
    letter-spacing: 0.5em;
    font-size: 1.5rem;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    margin: 0 0.25rem;
    transition: all 0.2s;
    background: white;
}

.pin-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.resend-text {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.resend-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.resend-link:hover {
    text-decoration: underline;
}

/* Location fields styles */
.location-fields {
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    background-color: #f9fafb;
}

.location-fields select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    background-color: white;
    color: #374151;
    font-size: 0.875rem;
    transition: all 0.2s;
    cursor: pointer;
}

.location-fields select:disabled {
    background-color: #f3f4f6;
    cursor: not-allowed;
    opacity: 0.7;
}

.location-fields select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.location-fields h3 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.location-fields .input-group {
    margin-bottom: 0.75rem;
}

.location-fields .input-group:last-child {
    margin-bottom: 0;
}

/* Mobile number input styles */
.mobile-number-group {
    display: flex;
    align-items: center;
    gap: 0;
}

.mobile-prefix {
    background-color: #f3f4f6;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-right: none;
    border-radius: 8px 0 0 8px;
    color: var(--text-dark);
    font-size: 1rem;
    user-select: none;
}

.mobile-number-group input[type="tel"] {
    border-radius: 0 8px 8px 0;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

.error-message {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}

.primary-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.primary-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.primary-btn:active {
    transform: translateY(0);
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.form-footer p {
    color: var(--text-light);
    font-size: 0.875rem;
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Flatpickr customization */
.flatpickr-calendar {
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.flatpickr-day.selected {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        min-height: auto;
        width: 90%;
        max-width: 600px;
    }

    .form-section {
        padding: 1.5rem;
    }
    
    .login-form-wrapper {
        max-width: 85%;
        padding: 1.5rem;
    }
    
    #signupForm.form-content {
        width: 100%;
    }

    .form-content {
        min-height: auto;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0.5rem;
    }

    .container {
        width: 100%;
        border-radius: 8px;
        padding: 1rem;
    }

    .form-section {
        padding: 1rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-row .input-group {
        margin-bottom: 1.5rem;
        width: 100%;
    }

    input, select, textarea {
        font-size: 16px; /* Prevents zoom on mobile */
    }
}
