﻿/* =============================================
 * TGA - Login Page Styles (Redesign: Modern, Bright, Exciting)
 * ============================================= */

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

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background-color: #f1f5f9;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    padding: 24px;
}

.login-wrapper {
    display: flex;
    width: 100%;
    max-width: 1100px;
    background: #ffffff;
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0,0,0,0.02);
    overflow: hidden;
    position: relative;
    min-height: 650px;
}

/* ================== LEFT: EXCITING VISUAL ================== */
.login-visual {
    flex: 1.2;
    position: relative;
    background: linear-gradient(-45deg, #4f46e5, #d946ef, #0ea5e9, #4f46e5);
    background-size: 300% 300%;
    animation: excitingGradient 14s ease infinite;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
    overflow: hidden;
}

.login-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at center, rgba(255,255,255,0.15) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.8;
}

@keyframes excitingGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.visual-content {
    position: relative;
    z-index: 2;
}

.visual-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    padding: 10px 18px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 32px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    letter-spacing: 0.5px;
}

.visual-title {
    font-size: clamp(36px, 4vw, 52px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.visual-subtitle {
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.6;
    font-weight: 400;
    opacity: 0.9;
    max-width: 420px;
}

/* ================== RIGHT: CLEAR FORM ================== */
.login-panel {
    flex: 1;
    padding: clamp(30px, 5vw, 60px) clamp(30px, 5vw, 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
    max-width: 500px;
    width: 100%;
}

.login-header {
    margin-bottom: 40px;
}

.login-logo-box {
    width: 60px;
    height: 60px;
    background: #f8fafc;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #4f46e5;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
}

.login-title {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 15px;
    color: #64748b;
}

.login-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #ef4444;
    padding: 14px 18px;
    border-radius: 14px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.login-form .form-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 10px;
}

.login-form .form-label i {
    margin-right: 8px;
    color: #94a3b8;
}

.login-form .form-input {
    width: 100%;
    padding: 15px 20px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    color: #0f172a;
    font-size: 16px;
    transition: all 0.2s ease;
    outline: none;
}

.login-form .form-input:focus {
    background: #ffffff;
    border-color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.login-form .form-input::placeholder {
    color: #94a3b8;
}

.password-wrapper {
    position: relative;
}

.password-wrapper .form-input {
    padding-right: 50px;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.password-toggle:hover {
    color: #4f46e5;
    background: #f1f5f9;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-decoration: none;
}

.btn-primary {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 10px 20px -10px rgba(15, 23, 42, 0.5);
}

.btn-primary:active {
    transform: scale(0.98);
}

.login-form:hover .btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #d946ef 100%);
    box-shadow: 0 10px 25px -5px rgba(217, 70, 239, 0.4);
}

.login-footer {
    margin-top: 40px;
    text-align: center;
}

.login-footer p {
    font-size: 13px;
    color: #94a3b8;
}

.env-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    margin-top: 12px;
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

@media (max-width: 900px) {
    body {
        padding: 16px;
    }
    .login-wrapper {
        flex-direction: column;
        min-height: auto;
    }
    .login-visual {
        flex: none;
        padding: 40px 30px;
    }
    .login-panel {
        max-width: 100%;
    }
}
