﻿html {
    font-size: 16px;
}

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

body, html {
    background-color: #ffffff;
    font-family: Quicksand;
    font-size: 1rem;
    color: #8692a6;
    height: 100%;
}


pre {
    font-family: Poppins;
    color: #333;
    margin-top: 50px;
    padding: 20px;
    border: 1px solid rgba(0, 0,0,1);
    border-radius: 10px; 
    text-align: left;
    background: rgba(255, 255, 255, 0.8); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); 
    border-radius: 8px;
    white-space: pre-wrap; 
    word-wrap: break-word; 
    overflow-x: auto; 
}

.register-page .blenny-top-middle::before {
    width: 25vw;
    height: 20vh; 
}

.register-page .blenny-bottom-right::after {
    width: 15%; 
    height: 25%; 
}

.register-page .blenny-top-left::before {
    width: 15%; 
    height: 25%; 
}

.register-page .blenny-middle-left::after {
    width: 15%; 
    height: 25%; 
}

.register-page .splash-middle-right::before,
.register-page .splash-middle-left::before {
    width: 25%; 
    height: 25%; 
    background-size: contain; 
}

.register-page .form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}


.register-page .form fieldset {
    border: none; 
    margin: 0;
    padding: 0;
}


.register-page .form fieldset legend {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    margin-bottom: 40px;
}


.register-page .form fieldset div {
    margin-bottom: 15px; 
}

.register-page .form fieldset div label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}


.register-page .form fieldset div input:focus {
    border-color: #007bff;
    outline: none;
}

.register-page .form fieldset div .text-danger {
    font-size: 0.875rem;
    color: #e74c3c;
}


.register-page .form input[type="submit"]:hover {
    background-color: #0051ff;
}

.register-page .form a#forgot-password {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.875rem;
    color: #0051ff;
    text-decoration: none;
}

.register-page .form a#forgot-password:hover {
    text-decoration: underline;
}

.register-page .Register_Subtext {
    font-size: 0.875rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.5;
}

.Register_Subtext{
    padding: 20px;
    border: 1px solid grey;
    border-radius: 20px;
}

.Terms-container{
    width: 100%;
    max-width: 1000px;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    margin: 10px;
}

.form-control{
    border-radius: 22px;
    min-height: 40px;
    font-size: 0.875rem;
    line-height: 1.4;
}

.btn {
    border-radius: 50px;
    min-height: 40px;
    font-size: 0.875rem;
    font-weight: 400;
}


.btn-sm {
    border-radius: 50px;
    min-height: 40px;
    font-size: 0.875rem;
}

h1 {
    font-family: Quicksand;
    font-weight: 500;
    font-size: 128px;
    line-height: normal;
    color: #000000;
    letter-spacing: -15px;
    margin-bottom: -17px;
}

    h1::first-letter {
        color: #0051ff;
    }


.tagline1 {
    background: linear-gradient(180deg, #427eff, #0053ff);
    -webkit-background-clip: text !important;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-fill-color: transparent;
    text-align: center;
    display: inline-block;
    font-family: Quicksand;
    font-weight: 600;
    padding-right: 40px;
    color: transparent;
    font-size: 20px;
    letter-spacing: 0;
    line-height: normal;
    width: 100%;
}

h2 {
    height: 45px;
    font-family: Poppins;
    font-weight: 600;
    color: #000000;
    font-size: 30px;
    text-align: center;
    letter-spacing: 0;
    line-height: normal;
    width: 100%;
    margin-top: 50px;
    white-space: pre-wrap;
    display: inline-block;
}

.tagline2 {
    font-size: 18px;
    line-height: 28px;
    font-family: Poppins;
    color: #8692a6;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* ========================================
   MODERN LOGIN CONTAINER STYLING
   ======================================== */
.login-container {
    width: 100%;
    max-width: 520px;
    padding: 48px 40px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: none;
    margin: 20px;
    position: relative;
    overflow: hidden;
}


/* ========================================
   HEADER SECTION
   ======================================== */
.login-header {
    margin-bottom: 2rem;
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.login-subtitle {
    font-size: 1rem;
    color: #718096;
    margin: 0;
    font-weight: 400;
}

/* ========================================
   FORM FIELD STYLING
   ======================================== */
.form-field {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    letter-spacing: 0.025em;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper .form-control {
    width: 100%;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    line-height: 1.4;
    min-height: 40px;
    border: 2px solid #e2e8f0;
    border-radius: 22px;
    background-color: #ffffff;
    color: #1a202c;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Simplified form controls for auth pages - match register screen */
.auth-page-wrapper .form-control,
.login-container .form-control,
.register-container .form-control,
.terms-container .form-control {
    box-shadow: none !important;
    transition: border-color 0.2s ease !important;
}

.auth-page-wrapper .form-control:focus,
.login-container .form-control:focus,
.register-container .form-control:focus,
.terms-container .form-control:focus {
    box-shadow: none !important;
    border-color: #86b7fe !important;
}

/* Email input without icon - normal padding */
.email-input {
    padding: 0.5rem 1rem !important;
    min-height: 40px !important;
}

.input-wrapper .form-control:focus {
    outline: none;
    border-color: #355771;
    box-shadow: 0 0 0 3px rgba(53, 87, 113, 0.1);
    transform: translateY(-1px);
}

.input-wrapper .form-control::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: #a0aec0;
    font-size: 1rem;
    z-index: 2;
    pointer-events: none;
    transition: color 0.2s ease;
}

.input-wrapper:focus-within .input-icon {
    color: #355771;
}

.input-wrapper.focused .form-control {
    transform: none;
    box-shadow: none;
}

/* ========================================
   PASSWORD FIELD STYLING
   ======================================== */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 52px;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #a0aec0;
    font-size: 1rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    z-index: 3;
}

.password-toggle-btn:hover {
    color: #355771;
    background-color: rgba(53, 87, 113, 0.05);
}

.password-toggle-btn:focus {
    outline: none;
    box-shadow: none;
}

/* ========================================
   CUSTOM CHECKBOX STYLING
   ======================================== */
.form-options {
    margin: 2rem 0;
}

/* Auth Page Checkboxes - Match Employer Dashboard Design */
/* Let private.css handle the base styling, just override colors */
.auth-page-wrapper .form-check-input:checked,
.login-container .form-check-input:checked,
.register-container .form-check-input:checked,
.terms-container .form-check-input:checked {
    background: #355771 !important;
    border-color: #355771 !important;
}

.auth-page-wrapper .form-check-input:checked:hover,
.login-container .form-check-input:checked:hover,
.register-container .form-check-input:checked:hover,
.terms-container .form-check-input:checked:hover {
    background: #279AF1 !important;
    border-color: #279AF1 !important;
}

.auth-page-wrapper .form-check-input:focus,
.login-container .form-check-input:focus,
.register-container .form-check-input:focus,
.terms-container .form-check-input:focus {
    border-color: #355771 !important;
    box-shadow: none !important;
}

.auth-page-wrapper .form-check-input:hover,
.login-container .form-check-input:hover,
.register-container .form-check-input:hover,
.terms-container .form-check-input:hover {
    border-color: #279AF1 !important;
}

.terms-link {
    color: #279af1;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.terms-link:hover {
    color: #355771;
    text-decoration: underline;
}

/* ========================================
   ERROR MESSAGE STYLING
   ======================================== */
.error-message {
    display: block;
    color: #e53e3e;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 0.5rem;
    padding-left: 4px;
}

.alert-danger {
    background-color: #fed7d7;
    border: 1px solid #feb2b2;
    color: #c53030;
    padding: 0.75rem 1rem;
    border-radius: 15px;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

/* ========================================
   LOGIN BUTTON STYLING
   ======================================== */
.login-button-section {
    margin: 2rem 0;
}

.login-btn {
    width: 100%;
    padding: 0.5rem 1.5rem;
    min-height: 40px;
    background-color: #355771 !important;
    border: none !important;
    border-radius: 50px;
    color: white !important;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.025em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.login-btn:hover {
    transform: none;
    box-shadow: none;
    background-color: #279AF1 !important;
}

.login-btn:active {
    transform: none;
    box-shadow: none;
}

.login-btn:focus {
    outline: none;
    box-shadow: none;
}

.btn-text {
    transition: transform 0.2s ease;
}

.btn-icon {
    transition: transform 0.2s ease;
}

.login-btn:hover .btn-icon {
    transform: translateX(4px);
}

/* ========================================
   LINKS SECTION STYLING
   ======================================== */
.login-links {
    margin-top: 2rem;
}

.login-link {
    display: block;
    color: #279af1;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    transition: color 0.2s ease;
}

.login-link:hover {
    color: #355771;
    text-decoration: underline;
}

.divider-text {
    position: relative;
    margin: 1.5rem 0;
    text-align: center;
}

.divider-text::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e2e8f0;
}

.divider-text span {
    background-color: #ffffff;
    padding: 0 16px;
    color: #718096;
    font-size: 0.875rem;
    position: relative;
    z-index: 1;
}

.register-link {
    display: inline-block;
    color: #355771;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    padding: 0.5rem 1.5rem;
    min-height: 40px;
    border: 2px solid #355771;
    border-radius: 50px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.register-link:hover {
    background-color: #355771;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(53, 87, 113, 0.2);
}

/* ========================================
   FOOTER STYLING
   ======================================== */
.login-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    width: 100%;
}

.login-footer .copyright {
    color: #a0aec0;
    font-size: 0.75rem;
    margin: 0;
    text-align: center;
    width: 100%;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 600px) {
    .login-container {
        margin: 10px;
        padding: 32px 24px;
        max-width: none;
    }
    
    .login-title {
        font-size: 1.75rem;
    }
    
    .login-btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.875rem;
        min-height: 40px;
    }
}

@media (max-width: 480px) {
    .login-container {
        margin: 5px;
        padding: 24px 20px;
    }
    
    .login-title {
        font-size: 1.5rem;
    }
    
    .form-label {
        font-size: 0.8rem;
    }
    
    .input-wrapper .form-control {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
        min-height: 40px;
    }
    
    .email-input {
        padding: 0.5rem 1rem !important;
        min-height: 40px !important;
    }
}

.login-container .overlap {
    margin-bottom: 20px;
    text-align: center;
}

.login-container .form label {
    width: 100% !important;
}

.alert-danger {
    border-radius: 15px;
}

.section-title {
    display: inline-block;
    text-align: center;
}

.heading-underline {
    width: 42%;
    border: 0px solid #000;
    margin: 0.25rem auto 1.5rem auto; /* top, right/left, bottom */
}

.copyright {
    position: fixed;
    bottom: 0px;
}
/* Old pass-hideShow styles removed - now using proper button with FontAwesome icons */

/* Password validation styles */
.password-requirements {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.75rem;
    margin-top: 0.5rem;
}

.password-requirements ul {
    margin-bottom: 0;
}

.password-requirements li {
    transition: color 0.2s ease-in-out;
}

.password-requirements li.text-success {
    color: #198754 !important;
}

.password-requirements li.text-muted {
    color: #6c757d !important;
}

.password-requirements code {
    background-color: #e9ecef;
    color: #495057;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-family: 'Courier New', monospace;
}

.password-requirements .border-top {
    border-top-color: #dee2e6 !important;
}

/* Form validation styles */
.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-valid {
    border-color: #198754;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

/* Alert styles */
.alert {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-heading {
    color: #721c24;
    font-weight: 600;
}

/* Button styles */
/* Override private.css button styles for all auth pages */
.auth-page-wrapper .btn-primary,
.login-container .btn-primary,
.register-container .btn-primary,
.terms-container .btn-primary {
    background-color: #355771 !important;
    border-color: #355771 !important;
    transition: all 0.3s ease;
    box-shadow: none !important;
}

.auth-page-wrapper .btn-primary:hover,
.login-container .btn-primary:hover,
.register-container .btn-primary:hover,
.terms-container .btn-primary:hover {
    background-color: #279AF1 !important;
    border-color: #279AF1 !important;
    transform: none;
    box-shadow: none !important;
}

.auth-page-wrapper .btn-primary:active,
.login-container .btn-primary:active,
.register-container .btn-primary:active,
.terms-container .btn-primary:active {
    transform: none;
    box-shadow: none !important;
}

.auth-page-wrapper .btn-primary:focus,
.login-container .btn-primary:focus,
.register-container .btn-primary:focus,
.terms-container .btn-primary:focus {
    box-shadow: none !important;
}

/* ===== ENHANCED AUTHENTICATION PAGE STYLES ===== */

/* Full Screen Background Layout */
.auth-page-wrapper,
.register-page-wrapper,
.terms-page-wrapper {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* Full Screen Background Images */
.auth-background,
.register-background,
.terms-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
}

.auth-background-img,
.register-background-img,
.terms-background-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Overlay Containers for Forms */
.auth-overlay-container,
.register-overlay-container,
.terms-overlay-container {
    position: relative;
    z-index: 2;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
}

/* Responsive Login Container */
.login-container {
    background: rgba(255, 255, 255, 1);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 2rem;
    width: 100%;
    max-width: 450px;
    min-width: 350px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
}

/* Responsive adjustments */
@media (max-width: 1400px) {
    .login-container,
    .terms-container {
        right: 3%;
        max-width: 400px;
    }
}

@media (max-width: 1200px) {
    .login-container,
    .terms-container {
        right: 2%;
        max-width: 380px;
    }
}

@media (max-width: 991.98px) {
    .auth-overlay-container,
    .register-overlay-container,
    .terms-overlay-container {
        justify-content: center;
    }
    
    .login-container,
    .register-container,
    .terms-container {
        position: relative;
        right: auto;
        left: auto;
        top: auto;
        transform: none;
        margin: 1rem;
        padding: 1.5rem;
        border-radius: 15px;
        width: 100%;
        max-width: 500px;
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .login-container,
    .register-container,
    .terms-container {
        max-width: 450px;
    }
}

@media (max-width: 575.98px) {
    .login-container,
    .register-container,
    .terms-container {
        margin: 0.5rem;
        padding: 1rem;
        border-radius: 12px;
        max-width: calc(100% - 1rem);
    }
}

/* ===== REGISTER PAGE SPECIFIC STYLES ===== */

/* Register Container - Centered Overlay */
.register-container {
    background: rgba(255, 255, 255, 1);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 2rem;
    width: 100%;
    max-width: 600px;
    min-width: 400px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

/* ===== TERMS OF SERVICE PAGE SPECIFIC STYLES ===== */

/* Terms Container - Right Positioned Overlay */
.terms-container {
    background: rgba(255, 255, 255, 1);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    min-width: 350px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    max-height: 80vh;
    overflow-y: auto;
    z-index: 3;
}

/* Terms Content Styling */
.terms-content {
    max-height: 50vh;
    overflow-y: auto;
    margin-bottom: 1.5rem;
}

.terms-content pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #495057;
}

/* ===== RESPONSIVE DESIGN FOR AUTHENTICATION PAGES ===== */
/* Now handled by Bootstrap Grid System - See above responsive container styles */

/* ========================================
   TOAST NOTIFICATION STYLING
   ======================================== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 16px 20px;
    min-width: 300px;
    max-width: 450px;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    border-left: 4px solid;
    position: relative;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-error {
    border-left-color: #ef4444;
    background: linear-gradient(135deg, #fff 0%, #fff5f5 100%);
}

.toast-success {
    border-left-color: #10b981;
    background: linear-gradient(135deg, #fff 0%, #f0fdf4 100%);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast-error .toast-icon {
    color: #ef4444;
}

.toast-success .toast-icon {
    color: #10b981;
}

.toast-message {
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    flex: 1;
}

/* Mobile adjustments */
@media (max-width: 576px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        min-width: auto;
        width: 100%;
        padding: 14px 16px;
    }
    
    .toast-message {
        font-size: 13px;
    }
}

/* Shake animation for validation errors */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}

.shake {
    animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* Error state for form controls */
.form-control.error {
    border-color: #ef4444;
    box-shadow: none;
}

.form-check.error .form-check-input {
    border-color: #ef4444 !important;
    box-shadow: none !important;
}