/* =============================================
   LOGIN PAGE STYLES
   LMS OBE - AMIK Serang
   Premium glassmorphism design
   ============================================= */

:root {
    --primary: #1B4965;
    --primary-light: #62B6CB;
    --accent: #5FA8D3;
    --success: #2EC4B6;
    --warning: #F4A261;
    --danger: #E76F51;
    --dark: #0B2545;
    --surface: #F7F9FC;
    --card: #FFFFFF;
    --border: #E2E8F0;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Animated Background */
.login-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 50%, #1a3550 100%);
    z-index: -2;
}

.floating-shapes {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.07;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
}

.shape-1 {
    width: 400px; height: 400px;
    top: -100px; right: -100px;
    animation: float1 15s ease-in-out infinite;
}
.shape-2 {
    width: 300px; height: 300px;
    bottom: -80px; left: -80px;
    animation: float2 18s ease-in-out infinite;
}
.shape-3 {
    width: 200px; height: 200px;
    top: 50%; left: 10%;
    animation: float3 12s ease-in-out infinite;
}
.shape-4 {
    width: 150px; height: 150px;
    top: 20%; right: 20%;
    animation: float1 20s ease-in-out infinite reverse;
}
.shape-5 {
    width: 100px; height: 100px;
    bottom: 20%; right: 10%;
    animation: float2 14s ease-in-out infinite reverse;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    33% { transform: translate(30px, -40px) rotate(120deg) scale(1.1); }
    66% { transform: translate(-20px, 20px) rotate(240deg) scale(0.9); }
}
@keyframes float2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-40px, -30px) rotate(180deg); }
}
@keyframes float3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -50px) scale(1.2); }
}

/* Login Container */
.login-container {
    width: 100%;
    max-width: 440px;
    padding: 20px;
    z-index: 10;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Login Card - Glassmorphism */
.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    overflow: hidden;
}

/* Logo Section */
.login-logo {
    text-align: center;
    padding: 36px 32px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    position: relative;
    overflow: hidden;
}

.login-logo::before {
    content: '';
    position: absolute;
    width: 200px; height: 200px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    top: -80px; right: -50px;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.login-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.login-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    margin-bottom: 10px;
}

.login-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Form */
.login-form {
    padding: 28px 32px 8px;
}

.form-floating > .form-control {
    border: 2px solid var(--border);
    border-radius: 14px;
    padding: 16px 16px 8px;
    height: 58px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: var(--surface);
}

.form-floating > .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(27, 73, 101, 0.1);
    background: #fff;
}

.form-floating > label {
    padding: 16px;
    font-size: 14px;
    color: #94a3b8;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Login Button */
.btn-login {
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    border: none;
    border-radius: 14px;
    color: #fff;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(27, 73, 101, 0.35);
    color: #fff;
}

.btn-login:hover::before {
    left: 100%;
}

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

/* Demo Section */
.demo-section {
    padding: 16px 32px 8px;
    text-align: center;
}

.demo-title {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 600;
}

.demo-credentials {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.demo-btn {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.demo-btn i {
    font-size: 18px;
    color: var(--primary);
}

.demo-btn span {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
}

.demo-btn:hover {
    border-color: var(--primary-light);
    background: rgba(27, 73, 101, 0.05);
    transform: translateY(-2px);
}

/* Footer */
.login-footer {
    text-align: center;
    padding: 16px 32px 24px;
}

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

/* Alert styling */
.alert {
    border-radius: 12px;
    font-size: 13px;
    border: none;
}

/* Responsive */
@media (max-width: 480px) {
    .login-container {
        padding: 16px;
    }
    
    .login-card {
        border-radius: 20px;
    }
    
    .login-form {
        padding: 24px 20px 8px;
    }
    
    .demo-section {
        padding: 16px 20px 8px;
    }
    
    .login-footer {
        padding: 16px 20px 20px;
    }
    
    .login-logo {
        padding: 28px 20px 16px;
    }
    
    .login-title {
        font-size: 24px;
    }
    
    .demo-btn {
        padding: 8px 10px;
    }
}
