/* ============================================
   PerpusNET - Login Page
   Clean Professional Theme
   ============================================ */

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

:root {
    --primary: #1e3a5f;
    --primary-light: #2e5a8f;
    --accent: #0ea5e9;
    --accent-light: #38bdf8;
    --accent-soft: #e0f2fe;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

body.login-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--white) 0%, var(--accent-soft) 100%);
    padding: 20px;
}

/* Main Container */
.login-container {
    display: flex;
    max-width: 960px;
    width: 100%;
    min-height: 580px;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid var(--accent);
    box-shadow:
        0 25px 50px -12px rgba(14, 165, 233, 0.25),
        0 12px 24px -8px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(14, 165, 233, 0.1);
}

/* Left Side - Form */
.login-left {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-left h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 36px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.login-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--white);
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.login-input::placeholder {
    color: var(--gray-400);
}

.login-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

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

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--gray-400);
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.toggle-password:hover {
    color: var(--accent);
}

/* Login Button */
.btn-login {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.2s ease;
}

.btn-login:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

/* Right Side - Illustration */
.login-right {
    flex: 1;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
}

.login-right::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -80px;
    right: -80px;
}

.login-right::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -60px;
    left: -60px;
}

.login-right img {
    max-width: 260px;
    width: 100%;
    height: auto;
    margin-bottom: 32px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
    position: relative;
    z-index: 1;
}

.login-right-content {
    text-align: center;
    z-index: 1;
    position: relative;
}

.login-right-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.login-right-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.6;
    max-width: 320px;
}

/* Alert Styles */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.alert i {
    font-size: 16px;
}

/* Link Style */
.login-link {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-muted);
}

.login-link a {
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        max-width: 440px;
    }

    .login-right {
        display: none;
    }

    .login-left {
        padding: 40px 32px;
    }

    .login-left h1 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    body.login-body {
        padding: 16px;
    }

    .login-left {
        padding: 32px 24px;
    }

    .login-left h1 {
        font-size: 22px;
    }

    .login-subtitle {
        font-size: 14px;
    }

    .login-input {
        padding: 12px 14px;
    }

    .btn-login {
        padding: 12px;
    }
}