/* ========================================
   TELEGRACAPTA - Login Page Styles
   ======================================== */

.login-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0A0E1A;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #E2E8F0;
    position: relative;
    overflow: hidden;
}

/* Background */
.login-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
}

.login-bg-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(108,99,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: loginGlow 6s ease-in-out infinite alternate;
}

@keyframes loginGlow {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

/* Container */
.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Card */
.login-card {
    width: 100%;
    background: rgba(20, 27, 45, 0.9);
    border: 1px solid rgba(108, 99, 255, 0.15);
    border-radius: 20px;
    padding: 24px 28px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), 0 0 60px rgba(108, 99, 255, 0.05);
    position: relative;
}

/* Back */
.login-back {
    position: absolute;
    top: 10px;
    left: 16px;
    color: #94A3B8;
    font-size: 1.4rem;
    text-decoration: none;
    transition: color 0.2s;
    background: none;
    border: none;
    padding: 4px;
}

.login-back:hover {
    background: rgba(108, 99, 255, 0.2);
    color: #fff;
}

/* Logo */
.login-logo {
    display: block;
    text-align: center;
    margin-bottom: 32px;
}

.login-logo-img {
    height: 80px;
    width: auto;
}

/* Title */
.login-title {
    font-size: 1.35rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2px;
    color: #fff;
}

.login-subtitle {
    font-size: 0.8rem;
    color: #94A3B8;
    text-align: center;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

/* Validation Summary */
.login-validation-summary {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 12px;
    font-size: 0.82rem;
    color: #EF4444;
    line-height: 1.5;
}

.login-validation-summary:empty {
    display: none;
}

.login-validation-summary ul {
    margin: 0;
    padding-left: 18px;
}

.login-validation-summary ul li {
    margin-bottom: 2px;
}

.login-validation-summary ul li:last-child {
    margin-bottom: 0;
}

/* Field */
.login-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.login-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #CBD5E1;
}

.login-input {
    width: 100%;
    padding: 8px 12px;
    background: rgba(10, 14, 26, 0.6);
    border: 1px solid rgba(108, 99, 255, 0.15);
    border-radius: 10px;
    color: #E2E8F0;
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.login-input::placeholder { color: #64748B; }

.login-input:focus {
    border-color: #6C63FF;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}

.login-input-error {
    border-color: #EF4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.login-error {
    font-size: 0.8rem;
    color: #EF4444;
    min-height: 18px;
}

/* Password */
.login-password-wrapper {
    position: relative;
}

.login-input-password {
    padding-right: 48px;
}

.login-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
    color: #94A3B8;
    transition: color 0.2s;
}

.login-toggle-password:hover { color: #E2E8F0; }

/* Forgot */
.login-forgot {
    text-align: right;
    margin-top: -8px;
}

.login-forgot-link {
    font-size: 0.82rem;
    color: #6C63FF;
    text-decoration: none;
    transition: color 0.2s;
}

.login-forgot-link:hover { color: #8B83FF; }

/* Buttons */
.login-btn {
    width: 100%;
    padding: 9px 24px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-btn-primary {
    background: linear-gradient(135deg, #6C63FF 0%, #00D4FF 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(108, 99, 255, 0.3);
}

.login-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 30px rgba(108, 99, 255, 0.5);
}

.login-btn-primary:active { transform: translateY(0); }

.login-btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.login-btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-spinner {
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Divider */
.login-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 10px 0;
    color: #64748B;
    font-size: 0.85rem;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(108, 99, 255, 0.15);
}

/* Google */
.login-btn-google {
    width: 100%;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid rgba(108, 99, 255, 0.15);
    color: #E2E8F0;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-btn-google:hover {
    border-color: rgba(108, 99, 255, 0.4);
    background: rgba(108, 99, 255, 0.05);
}

.login-google-icon { flex-shrink: 0; }

/* Register */
.login-register {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: #94A3B8;
}

.login-register-link {
    color: #6C63FF;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.login-register-link:hover { color: #8B83FF; }

/* Footer */
.login-footer {
    margin-top: 32px;
    text-align: center;
}

.login-footer p {
    font-size: 0.8rem;
    color: #64748B;
    margin-bottom: 8px;
}

.login-footer-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.login-footer-links a {
    font-size: 0.78rem;
    color: #64748B;
    text-decoration: none;
    transition: color 0.2s;
}

.login-footer-links a:hover { color: #94A3B8; }

/* Password Strength */
.password-strength {
    width: 100%;
    height: 3px;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0px;
}

.password-strength-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s, background 0.3s;
    width: 0;
}

.password-strength-bar.weak { background: #EF4444; }
.password-strength-bar.medium { background: #FBBF24; }
.password-strength-bar.strong { background: #22C55E; }

.password-strength-text {
    font-size: 0.7rem;
    min-height: 12px;
    line-height: 12px;
}

.password-strength-text.weak { color: #EF4444; }
.password-strength-text.medium { color: #FBBF24; }
.password-strength-text.strong { color: #22C55E; }

/* Checkbox */
.login-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #94A3B8;
    line-height: 1.4;
}

.login-checkbox input { display: none; }

.login-checkbox-custom {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 1px solid rgba(108, 99, 255, 0.3);
    border-radius: 5px;
    background: rgba(10, 14, 26, 0.6);
    transition: all 0.2s;
    margin-top: 1px;
    position: relative;
}

.login-checkbox input:checked + .login-checkbox-custom {
    background: #6C63FF;
    border-color: #6C63FF;
}

.login-checkbox input:checked + .login-checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
}

.login-checkbox-text a {
    color: #6C63FF;
    text-decoration: none;
    transition: color 0.2s;
}

.login-checkbox-text a:hover { color: #8B83FF; }

/* Responsive */
@media (max-width: 480px) {
    .login-card { padding: 32px 24px; }
    .login-title { font-size: 1.4rem; }
}
