﻿/* Provides styles for the login page, including layout, form controls, and responsive design */
/* Last Updated: 2026-06-20 */

/* Root Variables & Reset */
:root {
    --login-primary: #4f46e5;
    --login-primary-hover: #4338ca;
    --login-primary-light: #818cf8;
    --login-primary-gradient: linear-gradient(135deg, #6366f1, #4f46e5);
    --login-border: #e5e7eb;
    --login-text: #111827;
    --login-text-secondary: #6b7280;
    --login-bg: #f9fafb;
    --login-card-bg: #ffffff;
    --login-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    --login-radius: 16px;
    --login-input-radius: 10px;
    --login-transition: 0.2s ease;
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: #ffffff !important;
    overflow-y: auto !important;
    position: relative;
}

/* Animated Background */
.login-bg-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.login-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 40%, #e0e7ff 70%, #eef2ff 100%);
    background-size: 400% 400% !important;
    animation: loginFlow 25s ease-in-out infinite;
}

@keyframes loginFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.light-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.2;
    pointer-events: none;
    animation: lightFloat 25s ease-in-out infinite;
}

.light-orb-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -100px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25), rgba(99, 102, 241, 0.05));
    animation-delay: 0s;
}

.light-orb-2 {
    width: 400px;
    height: 400px;
    bottom: -150px;
    left: -80px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.03));
    animation-delay: -8s;
}

.light-orb-3 {
    width: 300px;
    height: 300px;
    top: 40%;
    left: 40%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.1), rgba(236, 72, 153, 0.02));
    animation-delay: -16s;
}

@keyframes lightFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(60px, -40px) scale(1.05);
    }

    66% {
        transform: translate(-30px, 40px) scale(0.95);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* Two-Column Layout */
.two-col-container {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    width: 100%;
    position: relative;
    z-index: 10;
    padding: 40px 48px;
    gap: 48px;
    max-width: 1120px;
    margin: 0 auto;
    align-items: center;
}

/* Intro Column (Left Side) */
.intro-col {
    flex: 1.2;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

/* Intro Header */
.intro-header {
    margin-bottom: 24px;
    width: 100%;
}

    .intro-header .brand-title {
        font-size: 48px;
        font-weight: 800;
        color: var(--login-primary);
        margin: 15px 0 12px 0;
        letter-spacing: -0.5px;
        line-height: 1.1;
        text-align: right;
    }

    .intro-header h2 {
        font-size: 30px;
        font-weight: 700;
        color: var(--login-text);
        margin: 0;
        margin-bottom: 8px;
        line-height: 1.6;
        letter-spacing: -0.3px;
        text-align: right;
    }

        .intro-header h2 .highlight {
            background: var(--login-primary-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

/* Intro Details */
.intro-details {
    display: block;
    width: 100%;
}

.intro-col .subtitle {
    font-size: 16px;
    color: var(--login-text-secondary);
    margin: 5px 0 37px 0;
    line-height: 1.8;
    text-align: right;
}

/* Feature Pills */
.feature-pills {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-bottom: 8px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: #f8f9fc;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--login-text);
    border: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    line-height: 1.4;
}

    .pill:hover {
        border-color: #e5e7eb;
        background: #f5f6fa;
    }

    .pill i {
        font-size: 16px;
    }

    .pill:nth-child(1) i {
        color: #6366f1;
    }

    .pill:nth-child(2) i {
        color: #8b5cf6;
    }

    .pill:nth-child(3) i {
        color: #06b6d4;
    }

    .pill:nth-child(4) i {
        color: #f59e0b;
    }

    .pill:nth-child(5) i {
        color: #10b981;
    }

/* Call to Action Button */
.cta-container {
    width: 100%;
    margin-top: 32px;
    margin-bottom: 8px;
    display: flex;
    justify-content: flex-start;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--login-primary-gradient);
    border: none;
    border-radius: 50px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.2);
    line-height: 1.4;
}

    .btn-cta:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 24px rgba(99, 102, 241, 0.3);
    }

    .btn-cta:active {
        transform: translateY(0);
    }

    .btn-cta i {
        font-size: 20px;
    }

/* Show Details Button (Mobile Only) */
.btn-show-details {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    margin-top: 16px;
    background: transparent;
    border: none;
    border-radius: 0;
    color: var(--login-primary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.4;
}

    .btn-show-details:hover {
        color: var(--login-primary-hover);
    }

    .btn-show-details i {
        font-size: 16px;
        transition: transform 0.3s ease;
        color: inherit;
    }

/* Login Column (Right Side) */
.login-col {
    flex: 0.8;
    min-width: 320px;
    max-width: 400px;
}

    .login-col .card {
        border: 1px solid var(--login-border);
        border-radius: var(--login-radius);
        box-shadow: var(--login-shadow);
        background: var(--login-card-bg);
        padding: 36px 32px;
        transition: all var(--login-transition);
    }

        .login-col .card:hover {
            box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
        }

    .login-col .card-body {
        padding: 0;
    }

/* Login Header */
.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.app-logo {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--login-primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.15);
}

    .app-logo i {
        font-size: 28px;
        color: #ffffff;
    }

.login-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--login-text);
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.login-header .login-subtitle {
    font-size: 14px;
    color: var(--login-text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* Form Groups */
.form-group {
    position: relative;
    margin-bottom: 18px;
}

    .form-group .input-icon {
        position: absolute;
        right: 14px;
        top: 24px;
        transform: translateY(-50%);
        color: var(--login-text-secondary);
        font-size: 16px;
        z-index: 1;
        opacity: 0.4;
    }

    .form-group .form-control {
        width: 100%;
        padding: 12px 44px 12px 44px;
        border: 1.5px solid var(--login-border);
        border-radius: var(--login-input-radius);
        font-size: 14px;
        color: var(--login-text);
        background: var(--login-bg);
        transition: all var(--login-transition);
        height: 48px;
        direction: ltr;
        text-align: right;
        line-height: 1.4;
    }

        .form-group .form-control:focus {
            border-color: var(--login-primary);
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.06);
            background: #ffffff;
            outline: none;
        }

        .form-group .form-control::placeholder {
            color: #9ca3af;
            font-size: 14px;
        }

        .form-group .form-control.is-invalid {
            border-color: #ef4444;
            box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.06);
        }

/* Password Toggle Button */
.toggle-password {
    position: absolute;
    left: 14px;
    top: 24px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--login-text-secondary);
    cursor: pointer;
    padding: 0;
    font-size: 16px;
    opacity: 0.4;
    transition: opacity var(--login-transition);
}

    .toggle-password:hover {
        opacity: 0.8;
    }

    .toggle-password i {
        font-size: 18px;
    }

/* Field Error Message */
.field-error {
    font-size: 12px;
    color: #ef4444;
    min-height: 18px;
    font-weight: 500;
    line-height: 1.4;
}

    .field-error:empty {
        display: none;
    }

/* Forgot Password Link */
.forgot-link {
    text-align: right;
    margin: 22px 0 24px 0 !important;
}

    .forgot-link a {
        color: var(--login-text-secondary);
        font-size: 13px;
        text-decoration: none;
        transition: color var(--login-transition);
        cursor: pointer;
        line-height: 1.4;
    }

        .forgot-link a:hover {
            color: var(--login-primary);
            text-decoration: underline;
        }

/* Login Button */
.btn-login {
    width: 100%;
    padding: 12px;
    background: var(--login-primary-gradient);
    border: none;
    border-radius: var(--login-input-radius);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--login-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.15);
    line-height: 1.4;
}

    .btn-login:hover {
        background: linear-gradient(135deg, #4f46e5, #4338ca);
        transform: translateY(-1px);
        box-shadow: 0 4px 20px rgba(99, 102, 241, 0.25);
    }

    .btn-login:active {
        transform: translateY(0);
    }

    .btn-login:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

    .btn-login .spinner-border {
        width: 18px;
        height: 18px;
        border-width: 2px;
    }

/* Login Footer */
.login-footer {
    text-align: center;
    margin-top: 32px;
    padding-bottom: 15px;
}

    .login-footer .copyright {
        font-size: 12px;
        color: var(--login-text-secondary);
        margin: 0;
        opacity: 0.5;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        line-height: 1.4;
    }

        .login-footer .copyright i {
            font-size: 12px;
        }

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    max-width: 400px;
    width: auto;
    pointer-events: none;
    text-align: center;
}

    .toast-container .toast-message {
        background: #1f2937;
        color: #ffffff;
        padding: 12px 24px;
        border-radius: 10px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
        display: inline-flex;
        align-items: center;
        gap: 10px;
        opacity: 0;
        transform: translateY(12px) scale(0.96);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        font-size: 14px;
        pointer-events: auto;
        min-height: 40px;
        border: none;
        text-align: right;
        max-width: 100% !important;
        width: fit-content !important;
        margin: 0 auto;
        line-height: 1.4;
    }

        .toast-container .toast-message.show {
            opacity: 1;
            transform: translateY(0) scale(1);
        }

        .toast-container .toast-message.hiding {
            opacity: 0;
            transform: translateY(-12px) scale(0.96);
        }

        .toast-container .toast-message.success {
            background: #10b981;
        }

        .toast-container .toast-message.error {
            background: #ef4444;
        }

        .toast-container .toast-message.warning {
            background: #f59e0b;
        }

    .toast-container .toast-content {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .toast-container .toast-text {
        margin: 0;
        font-weight: 500;
        font-size: 14px;
    }

/* Help Modal */
.help-modal-content {
    border: none;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 440px;
    margin: 0 auto;
}

.help-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 28px 16px 28px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.help-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--login-primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.15);
}

    .help-header-icon i {
        font-size: 24px;
        color: #ffffff;
    }

.help-header-text {
    flex: 1;
}

    .help-header-text .modal-title {
        font-size: 18px;
        font-weight: 700;
        color: var(--login-text);
        margin: 0;
        line-height: 1.3;
    }

    .help-header-text .help-subtitle {
        font-size: 13px;
        color: var(--login-text-secondary);
        margin: 2px 0 0 0;
        line-height: 1.4;
    }

.help-modal-header .btn-close {
    position: absolute;
    left: 20px;
    top: 20px;
    background: transparent;
    font-size: 20px;
    opacity: 0.4;
    transition: opacity 0.2s;
    padding: 4px;
}

    .help-modal-header .btn-close:hover {
        opacity: 1;
    }

.help-modal-body {
    padding: 20px 28px 12px 28px;
}

.help-description {
    font-size: 14px;
    color: var(--login-text-secondary);
    margin: 0 0 24px 0;
    text-align: center;
    line-height: 1.6;
}

.help-contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.help-contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #f8f9fc;
    border: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    cursor: pointer;
}

    .help-contact-item:hover {
        background: #f0f2f7;
        border-color: var(--login-primary-light);
    }

.help-contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
    color: #ffffff;
}

    .help-contact-icon.phone {
        background: linear-gradient(135deg, #3b82f6, #2563eb);
    }

    .help-contact-icon.whatsapp {
        background: linear-gradient(135deg, #25d366, #128c7e);
    }

    .help-contact-icon.instagram {
        background: linear-gradient(135deg, #f58529, #dd2a7b);
    }

    .help-contact-icon.telegram {
        background: linear-gradient(135deg, #0088cc, #006699);
    }

.help-contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.help-contact-label {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--login-text);
    line-height: 1.4;
}

.help-contact-value {
    font-size: 12px;
    color: var(--login-text-secondary);
    line-height: 1.4;
    direction: ltr;
    text-align: right;
}

.help-footer-info {
    display: flex;
    justify-content: center;
    padding-top: 16px;
    margin-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.help-version {
    margin-top: 8px;
    font-size: 12px;
    color: var(--login-text-secondary);
    opacity: 0.5;
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1.4;
}

    .help-version i {
        font-size: 12px;
    }

.help-modal-footer {
    padding: 12px 28px 24px 28px;
    display: flex;
    justify-content: center;
}

.btn-help-close {
    padding: 10px 32px;
    background: var(--login-primary-gradient);
    border: none;
    border-radius: 50px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.12);
    line-height: 1.4;
}

    .btn-help-close:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2);
    }

    .btn-help-close i {
        font-size: 16px;
    }

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-16px);
    }
}

/* Responsive - Tablet */
@media (max-width: 992px) {
    .two-col-container {
        flex-direction: column;
        padding: 32px 32px;
        gap: 32px;
        align-items: center;
        justify-content: center;
    }

    .login-col {
        width: 100%;
        max-width: 420px;
        min-width: unset;
        order: 1;
    }

        .login-col .card {
            padding: 32px 28px;
        }

    .intro-col {
        width: 100%;
        order: 0;
        padding: 0;
        background: rgba(255, 255, 255, 0.75);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.8);
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
        padding: 32px 24px;
        align-items: center;
    }

    .intro-header {
        margin-bottom: 0;
        width: 100%;
    }

        .intro-header .brand-title {
            font-size: 40px;
            text-align: center;
        }

        .intro-header h2 {
            font-size: 26px;
            text-align: center;
        }

    .intro-details {
        display: none;
        padding-top: 16px;
        width: 100%;
    }

        .intro-details.open {
            display: block !important;
        }

    .btn-show-details {
        display: flex !important;
    }

    .intro-col .subtitle {
        font-size: 15px;
        margin-bottom: 32px;
        text-align: center;
    }

    .feature-pills {
        justify-content: center;
    }

    .pill {
        font-size: 13px;
        padding: 6px 14px;
    }

        .pill i {
            font-size: 14px;
        }

    .cta-container {
        justify-content: center;
    }

    .btn-cta {
        width: 100%;
        justify-content: center;
    }
}

/* Responsive - Mobile */
@media (max-width: 576px) {
    .two-col-container {
        gap: 32px;
    }

    .login-col {
        max-width: 100%;
    }

        .login-col .card {
            padding: 24px 18px;
            border-radius: 14px;
        }

    .login-header h2 {
        font-size: 20px;
    }

    .login-header .login-subtitle {
        font-size: 13px;
    }

    .intro-col {
        padding: 24px 18px;
        border-radius: 16px;
    }

    .intro-header .brand-title {
        font-size: 32px;
    }

    .intro-header h2 {
        font-size: 22px;
    }

    .intro-col .subtitle {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .btn-show-details {
        font-size: 14px;
        padding: 10px 14px;
    }

    .feature-pills {
        gap: 8px;
    }

    .pill {
        font-size: 12px;
        padding: 5px 12px;
        gap: 6px;
    }

        .pill i {
            font-size: 13px;
        }

    .btn-cta {
        font-size: 14px;
        padding: 12px 24px;
    }

    .form-group .form-control {
        height: 44px;
        font-size: 13px;
        padding: 10px 40px 10px 40px;
    }

    .btn-login {
        height: 44px;
        font-size: 14px;
    }

    .login-footer {
        margin-top: 32px;
        padding-top: 16px;
    }

    .footer-links a {
        font-size: 12px;
    }

    .login-footer .copyright {
        font-size: 11px;
    }

    .toast-container {
        bottom: 16px;
        width: 92%;
        max-width: none;
    }

        .toast-container .toast-message {
            padding: 10px 16px;
            font-size: 13px;
            min-height: 36px;
            border-radius: 8px;
        }

    .help-modal-content {
        margin: 12px;
        border-radius: 14px;
    }

    .help-modal-header {
        padding: 18px 20px 12px 20px;
        flex-wrap: wrap;
    }

    .help-modal-footer {
        padding: 8px 20px 18px 20px;
    }

    .help-contact-item {
        padding: 10px 14px;
    }

    .help-contact-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--login-border);
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #cbd5e1;
    }
