:root {
    --primary-color: #1877F2;
    --secondary-color: #42B72A;
    --dark-color: #0f172a;
    --text-main: #334155;
    --text-heading: #1e293b;
    --border-color: #e2e8f0;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: white;
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

.auth-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* --- Left Side: Branding / Value Prop --- */
.auth-brand {
    flex: 1.2;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    color: white;
}

/* Abstract Pattern Decoration */
.auth-brand::before {
    content: "";
    position: absolute;
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(24, 119, 242, 0.15) 0%, transparent 70%);
    z-index: 1;
}

.brand-logo {
    font-family: inherit;
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

.brand-logo kbd {
    background: var(--primary-color);
    padding: 5px 10px;
    border-radius: 8px;
    color: white;
    border: none;
    font-family: inherit;
}

.brand-logo span {
    color: #f8fafc;
}

.brand-content {
    z-index: 2;
    max-width: 480px;
}

.brand-content h1 {
    font-family: inherit;
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #f8fafc;
    font-weight: 700;
}

.brand-content p {
    font-size: 18px;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 40px;
}

.benefit-list {
    list-style: none;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 25px;
}

.benefit-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 18px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.benefit-text h4 {
    color: #f8fafc;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.benefit-text p {
    font-size: 14px;
    margin: 0;
    color: #64748b;
}

.brand-footer {
    z-index: 2;
    font-size: 14px;
    color: #475569;
}

/* --- Right Side: Auth Forms --- */
.auth-form-area {
    flex: 0.8;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
}

.form-container {
    width: 100%;
    max-width: 420px;
    position: relative;
    overflow: hidden;
}

.auth-form {
    display: none;
    width: 100%;
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-form.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-header {
    margin-bottom: 30px;
}

.form-header h2 {
    font-family: inherit;
    font-size: 28px;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.form-header p {
    color: #64748b;
    font-size: 14px;
}

.input-group {
    margin-bottom: 24px;
    position: relative;
}

.input-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    margin-bottom: 6px;
    transition: var(--transition);
}

.input-control {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 2px solid #f1f5f9;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-heading);
    background: transparent;
    transition: var(--transition);
}

.input-control::placeholder {
    color: #cbd5e1;
    font-weight: 400;
}

.input-control:focus {
    outline: none;
    border-bottom-color: var(--primary-color);
}

.input-group:focus-within .input-label {
    color: var(--primary-color);
}

.auth-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #64748b;
    font-weight: 500;
}

.remember-me input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    border-radius: 4px;
    border: 2px solid var(--border-color);
    appearance: none;
    transition: var(--transition);
    position: relative;
}

.remember-me input:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.remember-me input:checked::after {
    content: "✓";
    position: absolute;
    color: white;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.link-text {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.link-text:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--dark-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 25px;
}

.btn-submit:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.15);
}

.social-auth {
    margin-bottom: 25px;
}

.social-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #f1f5f9;
}

.social-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: white;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-heading);
    cursor: pointer;
    transition: var(--transition);
}

.social-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.social-btn img {
    width: 20px;
}

.social-btn i {
    font-size: 18px;
    color: #1877F2;
}

.footer-cta {
    text-align: center;
    font-size: 14px;
    color: #64748b;
    margin-top: 15px;
}

/* Notification Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
}

.icon-success {
    background: rgba(66, 183, 42, 0.1);
    color: var(--secondary-color);
}

.icon-error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.modal-title {
    font-family: inherit;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 12px;
}

.modal-message {
    color: #64748b;
    font-size: 16px;
    line-height: 1.5;
}

.modal-loader {
    width: 100%;
    height: 4px;
    background: #f1f5f9;
    border-radius: 2px;
    margin-top: 30px;
    overflow: hidden;
    position: relative;
}

.loader-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 1.5s linear;
}

/* --- Responsive Design --- */
@media (min-width: 1101px) {
    .auth-brand {
        display: none;
    }

    .auth-form-area {
        flex: 1;
    }
}

@media (max-width: 1100px) {
    .auth-brand {
        padding: 40px;
    }

    .brand-content h1 {
        font-size: 32px;
    }
}

@media (max-width: 992px) {
    .auth-wrapper {
        flex-direction: column;
    }

    .auth-brand {
        flex: none;
        padding: 40px;
        min-height: auto;
        border-bottom: 2px solid var(--border-color);
    }

    .auth-form-area {
        flex: none;
        padding: 40px 20px;
        background: #f8fafc;
    }

    .brand-content {
        max-width: 100%;
        margin: 40px 0;
    }

    .brand-content p {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .auth-brand {
        padding: 30px 20px;
    }

    .brand-logo {
        font-size: 24px;
        justify-content: center;
    }

    .brand-content {
        display: none;
        /* Simplify mobile view */
    }

    .brand-footer {
        text-align: center;
        margin-top: 20px;
    }

    .auth-form-area {
        padding: 30px 15px;
    }

    .form-header h2 {
        font-size: 26px;
        text-align: center;
    }

    .form-header p {
        text-align: center;
    }

    .social-btns {
        grid-template-columns: 1fr;
    }

    .modal-card {
        padding: 30px 20px;
    }
}

@media (max-height: 700px) and (min-width: 993px) {
    .brand-content p {
        display: none;
    }

    .benefit-item {
        margin-bottom: 15px;
    }
}