/* Registration Specific Styles */



/* --- New Styles for Auth Pages (Login/Register) --- */
.auth-section {
    padding: 4rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
}

.auth-container {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width:70%;
    max-width: 600px;
    /*width: 100%;*/
    text-align: center;
}

.auth-container h2 {
    margin-bottom: 0.5rem;
}

.auth-container p {
    color: #6c757d;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-family);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.form-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-button {
    width: 100%;
    padding: 0.85rem;
    border: none;
    background: var(--primary-color);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s;
}

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

.auth-switch {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}


html {
    scroll-behavior: smooth;
}





.registration-section {
    padding: 70px 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    min-height: 100vh;
    /*display: flex;*/
    align-items: center;
    justify-content: center;
}

.registration-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.registration-header {
    padding: 25px;
    text-align: center;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
}

.registration-header h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.registration-header p {
    opacity: 0.9;
    font-size: 0.95rem;
}
/*
.registration-form {
    padding: 30px;
}
*/
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #1e293b;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: white;
}

.password-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 14px;
    cursor: pointer;
    color: #64748b;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: #2563eb;
}

.btn-register {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    margin-top: 10px;
}

.btn-register:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.login-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.95rem;
    color: #64748b;
}

.login-link a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Verification Section */
.verification-section {
    display: flex;
    flex-direction: column;
    margin-top: 30px;
    padding: 25px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.verification-container {
    width: 100%;
}

.verification-section h3 {
    color: #1e293b;
    margin-bottom: 15px;
    font-size: 1.4rem;
    text-align: center;
}

.verification-section p {
    color: #475569;
    margin-bottom: 5px;
    text-align: center;
    font-size: 0.95rem;
}

.check-spam {
    color: #64748b;
    font-size: 0.85rem !important;
    margin-bottom: 20px !important;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-verify {
    flex: 1;
    padding: 14px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-verify:hover {
    background: #1d4ed8;
}

.btn-resend {
    flex: 1;
    padding: 14px;
    background: #f8fafc;
    color: #2563eb;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-resend:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-resend:not(:disabled):hover {
    background: #e0e7ff;
}

.success-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #ecfdf5;
    color: #065f46;
    border-radius: 8px;
    margin-top: 20px;
}

.success-message i {
    font-size: 1.2rem;
}

/* Error and Flash Messages */
.error-message {
    color: #b91c1c;
    background: #fee2e2;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-top: 8px;
    display: none;
}

.flash-messages {
    margin-top: 20px;
}

.flash-message {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.flash-message.success {
    background: #ecfdf5;
    color: #065f46;
}

.flash-message.error {
    background: #fee2e2;
    color: #b91c1c;
}

.flash-message.warning {
    background: #fef3c7;
    color: #92400e;
}

.flash-message i {
    font-size: 1.1rem;
}

/* Checkbox styles */
.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 5px;
}

.checkbox-container input[type="checkbox"] {
    width: auto !important;
    padding: 0 !important;
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: #2563eb;
}

.agreement-label {
    display: block;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #475569;
    cursor: pointer;
    user-select: none;
    text-align: left;
}

.agreement-label a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.agreement-label a:hover {
    text-decoration: underline;
}

/* Form Container */
.form-container {
    position: relative;
    min-height: 400px; /* Adjust based on your form height */
}

/* Form Visibility Toggles */
.hidden {
    display: none !important;
}

/* Smooth transitions for forms */
#registerForm,
#verificationSection {
    transition: opacity 0.3s ease;
}

/* When hiding */
#registerForm.hidden,
#verificationSection.hidden {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}


.name-group {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 25px;
    gap: 1rem;
}

.name-group .half-width {
    width: 48%;
}




@media (max-width: 576px) {
    .registration-container {
        /*margin: 0 20px;*/
        width: 80vw;
    }

    .registration-header,
    .registration-form {
        padding: 20px;
    }
    
    .verification-section {
        padding: 20px;
    }
    
    .button-group {
        flex-direction: column;
    }

    .name-group {
        flex-direction: column;
    }

    .name-group .half-width {
        width: 100%;
    }
}






