/* New Modern Auth Pages Design */
body {
    background-color: #ffffff;
    font-family: 'Inter', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

.auth-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Left Side - Vibrant Brand Area */
.auth-sidebar {
    flex: 0 0 35%;
    background: #6032ff;
    /* Vibrant Brand Orange/Red */
    position: relative;
    padding: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.auth-sidebar[style*="background-image"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.auth-sidebar[style*="background-image"]::after,
.auth-sidebar[style*="background-image"]::before {
    /* Hide decorative circles if image is present */
    display: none !important;
}

/* Redefine overlay specifically since I just hid ::before/::after circles */
.auth-sidebar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

/* Decorative circles */
.auth-sidebar::before,
.auth-sidebar::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.auth-sidebar::before {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -50px;
}

.auth-sidebar::after {
    width: 250px;
    height: 250px;
    bottom: -80px;
    left: -60px;
}

.auth-sidebar-content {
    position: relative;
    z-index: 2;
    max-width: 480px;
}

.brand-logo {
    font-weight: 800;
    font-size: 24px;
    letter-spacing: 1px;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.brand-icon-wrapper {
    margin-bottom: 40px;
    opacity: 0.9;
}

.brand-icon-wrapper i {
    font-size: 48px;
}

.sidebar-heading {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.sidebar-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-weight: 400;
}

/* Right Side - Form Area */
.auth-form-container {
    flex: 0 0 65%;
    padding: 60px 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background: #fff;
}

.auth-form-inner {
    width: 100%;
    max-width: 480px;
    /* Wider form */
}

.form-header {
    margin-bottom: 40px;
    text-align: left;
}

.form-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1b;
    margin-bottom: 12px;
}

.form-header p {
    color: #6a6a6c;
    font-size: 16px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1b;
    margin-bottom: 10px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #d1d5db;
    /* Darker, more prominent border */
    border-radius: 12px;
    font-size: 15px;
    color: #1a1a1b;
    transition: all 0.2s;
    background: #ffffff;
}

.form-input:focus {
    outline: none;
    border-color: #6032ff;
    box-shadow: 0 0 0 4px rgba(96, 50, 255, 0.1);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    cursor: pointer;
}

.form-check input {
    width: 18px;
    height: 18px;
    accent-color: #1a1a1b;
}

.form-check label {
    font-size: 14px;
    color: #6a6a6c;
    cursor: pointer;
}

.btn-primary {
    width: 100%;
    background: #6032ff;
    /* Brand Purple */
    color: white;
    padding: 14px 18px;
    border-radius: 12px;
    border: 2px solid #6032ff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
}

.btn-primary:hover {
    background-color: #4e22e6;
    border-color: #4e22e6;
    opacity: 1;
}

.btn-secondary {
    width: 100%;
    background: #fff;
    color: #1a1a1b;
    padding: 14px 18px;
    border-radius: 12px;
    border: 2px solid #d1d5db;
    /* Matching border */
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    box-sizing: border-box;
    transition: all 0.2s;
}

.auth-footer {
    text-align: center;
    margin-top: 32px;
    font-size: 14px;
    color: #6a6a6c;
}

.auth-footer a {
    color: #6032ff;
    text-decoration: none;
    font-weight: 700;
}

@media (max-width: 992px) {
    .auth-sidebar {
        display: none;
    }

    .auth-container {
        background: #fff;
    }
}

/* Modal System */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.modal-content {
    background: #fff;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalPop 0.3s ease-out;
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}

.modal-close {
    background: #f1f5f9;
    color: #64748b;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.modal-body {
    padding: 32px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.6;
    color: #334155;
}

.modal-footer {
    padding: 24px 32px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
}

/* New Helpers */
.form-group-row {
    display: flex;
    gap: 16px;
    width: 100%;
}

.password-strength-wrapper {
    margin-top: 8px;
}

.strength-meter {
    height: 4px;
    background-color: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}

.strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
}

.strength-text {
    font-size: 12px;
    font-weight: 500;
}

.legal-agreements {
    margin-top: 24px;
    margin-bottom: 24px;
}

.legal-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    cursor: pointer;
}

.legal-item input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
    cursor: pointer;
    flex-shrink: 0;
}

.legal-label {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
}

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

.invalid-feedback {
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}