﻿/* ===== Login Page Styles ===== */
* {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
}

body {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        font-size: 14px;
        color: #2d3748;
        background: #f7fafc;
        line-height: 1.6;
        overflow: hidden;
}

.login-container {
        display: flex;
        height: 100vh;
        overflow: hidden;
}

/* ===== Left Side - Branding ===== */
.login-left {
        flex: 1;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 60px;
        position: relative;
        overflow: hidden;
}

        /* Decorative circles */
        .login-left::before {
                content: '';
                position: absolute;
                top: -100px;
                left: -100px;
                width: 400px;
                height: 400px;
                background: rgba(255, 255, 255, 0.1);
                border-radius: 50%;
        }

        .login-left::after {
                content: '';
                position: absolute;
                bottom: -150px;
                right: -150px;
                width: 500px;
                height: 500px;
                background: rgba(255, 255, 255, 0.08);
                border-radius: 50%;
        }

.login-brand {
        position: relative;
        z-index: 1;
        text-align: center;
        color: #fff;
}

.login-logo {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
        margin-bottom: 40px;
}
.logo-img {
        width: 80%;
        /* filter: drop-shadow(0 8px 15px rgba(102, 126, 234, 0.4)) drop-shadow(0 4px 8px rgba(118, 75, 162, 0.3)); */
        /*filter: drop-shadow(0 20px 25px rgba(102, 126, 234, 0.35)) drop-shadow(5px 1px 1px rgba(118, 75, 162, 0.25));*/
        /*box-shadow: 0 15px 35px rgba(102, 126, 234, 0.35), 0 5px 15px rgba(118, 75, 162, 0.25);*/
        filter: drop-shadow(5px 20px 25px rgba(102, 126, 234, 0.35)) drop-shadow(0 1px 1px rgba(118, 75, 162, 0.25));
}
.login-logo-icon {
        width: 70px;
        height: 70px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 35px;
        backdrop-filter: blur(10px);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.login-logo-text {
        font-size: 42px;
        font-weight: 700;
        letter-spacing: 1px;
}

        .login-logo-text span {
                font-weight: 300;
                opacity: 0.9;
        }

.login-tagline {
        font-size: 24px;
        font-weight: 300;
        margin-bottom: 20px;
        opacity: 0.95;
}

.login-description {
        font-size: 16px;
        opacity: 0.85;
        max-width: 400px;
        line-height: 1.8;
}

.login-features {
        margin-top: 50px;
        display: flex;
        flex-direction: column;
        gap: 20px;
        position: relative;
        z-index: 1;
}

.login-feature {
        display: flex;
        align-items: center;
        gap: 15px;
        color: #fff;
        font-size: 15px;
}

.login-feature-icon {
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        backdrop-filter: blur(10px);
}

/* ===== Right Side - Login Form ===== */
.login-right {
        width: 500px;
        background: #fff;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 60px;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.05);
}

.login-form-container {
        max-width: 380px;
        margin: 0 auto;
        width: 100%;
}

.login-header {
        margin-bottom: 40px;
}

        .login-header h1 {
                font-size: 32px;
                font-weight: 700;
                color: #2d3748;
                margin-bottom: 10px;
        }

        .login-header p {
                color: #718096;
                font-size: 15px;
        }

.login-form {
        display: flex;
        flex-direction: column;
        gap: 24px;
}

.form-group {
        display: flex;
        flex-direction: column;
        gap: 8px;
}

.form-label {
        font-size: 13px;
        font-weight: 600;
        color: #4a5568;
        text-transform: uppercase;
        letter-spacing: 0.5px;
}

.form-input-wrapper {
        position: relative;
}

.form-input-icon {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        color: #a0aec0;
        font-size: 16px;
}

.form-input {
        width: 100%;
        padding: 14px 16px 14px 48px;
        border: 2px solid #e2e8f0;
        border-radius: 10px;
        font-size: 15px;
        color: #2d3748;
        background: #f7fafc;
        transition: all 0.3s ease;
        font-family: inherit;
}

        .form-input:focus {
                outline: none;
                border-color: #667eea;
                background: #fff;
                box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
        }

        .form-input::placeholder {
                color: #a0aec0;
        }

.form-options {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 8px;
}

.remember-me {
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
}

        .remember-me input[type="checkbox"] {
                width: 18px;
                height: 18px;
                accent-color: #667eea;
                cursor: pointer;
        }

        .remember-me span {
                font-size: 13px;
                color: #4a5568;
        }

.forgot-password {
        font-size: 13px;
        color: #667eea;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s;
}

        .forgot-password:hover {
                color: #764ba2;
                text-decoration: underline;
        }

.login-button {
        width: 100%;
        padding: 16px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: #fff;
        border: none;
        border-radius: 10px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
        margin-top: 10px;
}

        .login-button:hover {
                transform: translateY(-2px);
                box-shadow: 0 6px 24px rgba(102, 126, 234, 0.4);
        }

        .login-button:active {
                transform: translateY(0);
        }

        .login-button:disabled {
                opacity: 0.7;
                cursor: not-allowed;
                transform: none;
        }

.login-divider {
        display: flex;
        align-items: center;
        gap: 15px;
        margin: 30px 0;
        color: #a0aec0;
        font-size: 13px;
}

        .login-divider::before,
        .login-divider::after {
                content: '';
                flex: 1;
                height: 1px;
                background: #e2e8f0;
        }

.login-footer {
        text-align: center;
        margin-top: 30px;
        padding-top: 30px;
        border-top: 1px solid #e2e8f0;
}

        .login-footer p {
                font-size: 13px;
                color: #718096;
        }

        .login-footer a {
                color: #667eea;
                text-decoration: none;
                font-weight: 600;
        }

                .login-footer a:hover {
                        text-decoration: underline;
                }

/* ===== Loading Spinner ===== */
.spinner {
        display: inline-block;
        width: 20px;
        height: 20px;
        border: 3px solid rgba(255, 255, 255, 0.3);
        border-top: 3px solid #fff;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        vertical-align: middle;
        margin-right: 8px;
}

@keyframes spin {
        0% {
                transform: rotate(0deg);
        }

        100% {
                transform: rotate(360deg);
        }
}

/* ===== Alert Messages ===== */
.alert {
        padding: 14px 18px;
        border-radius: 10px;
        font-size: 14px;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        gap: 10px;
}

.alert-error {
        background: #fff5f5;
        color: #c53030;
        border: 1px solid #fed7d7;
}

.alert-success {
        background: #f0fff4;
        color: #276749;
        border: 1px solid #c6f6d5;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
        .login-left {
                display: none;
        }

        .login-right {
                width: 100%;
        }
}

@media (max-width: 480px) {
        .login-right {
                padding: 40px 30px;
        }

        .login-header h1 {
                font-size: 26px;
        }
}
