/* ========================================
   PREMIUM LOGIN DESIGN - POS Cahaya Sani Vokasi
   ======================================== */

/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    overflow-x: hidden;
}

/* ========================================
   MAIN CONTAINER & BACKGROUND
   ======================================== */
.login-container {
    min-height: 100vh;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
}

/* ========================================
   PREMIUM BACKGROUND ANIMATIONS
   ======================================== */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-element {
    position: absolute;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 50%;
    animation: float 20s infinite linear;
}

.floating-element:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    background: linear-gradient(45deg, rgba(120, 119, 198, 0.1), rgba(120, 119, 198, 0.05));
}

.floating-element:nth-child(2) {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 10%;
    animation-delay: -5s;
    background: linear-gradient(45deg, rgba(255, 119, 198, 0.1), rgba(255, 119, 198, 0.05));
}

.floating-element:nth-child(3) {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 15%;
    animation-delay: -10s;
    background: linear-gradient(45deg, rgba(120, 219, 255, 0.1), rgba(120, 219, 255, 0.05));
}

/* ========================================
   ULTRA-WIDE SCREEN DECORATIONS
   ======================================== */
.ultra-wide-decoration {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 2;
}

.ultra-wide-left {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 400px;
    background: 
        linear-gradient(90deg, 
            rgba(255, 255, 255, 0.08) 0%, 
            rgba(255, 255, 255, 0.04) 30%, 
            rgba(255, 255, 255, 0.02) 60%, 
            transparent 100%),
        repeating-linear-gradient(90deg, 
            transparent 0%, 
            transparent 29px, 
            rgba(255, 255, 255, 0.05) 30px, 
            rgba(255, 255, 255, 0.05) 31px, 
            transparent 32px);
    border-right: 3px solid rgba(255, 255, 255, 0.15);
}

.ultra-wide-left::before {
    content: '';
    position: absolute;
    left: 80px;
    top: 15%;
    width: 4px;
    height: 300px;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 20%, 
        rgba(255, 255, 255, 0.2) 80%, 
        transparent 100%);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.ultra-wide-left::after {
    content: '';
    position: absolute;
    left: 160px;
    top: 45%;
    width: 2px;
    height: 200px;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.15) 30%, 
        rgba(255, 255, 255, 0.15) 70%, 
        transparent 100%);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.ultra-wide-left .premium-pattern {
    position: absolute;
    left: 250px;
    top: 25%;
    width: 120px;
    height: 120px;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

.ultra-wide-right {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 400px;
    background: 
        linear-gradient(270deg, 
            rgba(255, 255, 255, 0.08) 0%, 
            rgba(255, 255, 255, 0.04) 30%, 
            rgba(255, 255, 255, 0.02) 60%, 
            transparent 100%),
        repeating-linear-gradient(270deg, 
            transparent 0%, 
            transparent 29px, 
            rgba(255, 255, 255, 0.05) 30px, 
            rgba(255, 255, 255, 0.05) 31px, 
            transparent 32px);
    border-left: 3px solid rgba(255, 255, 255, 0.15);
}

.ultra-wide-right::before {
    content: '';
    position: absolute;
    right: 80px;
    top: 25%;
    width: 4px;
    height: 300px;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 20%, 
        rgba(255, 255, 255, 0.2) 80%, 
        transparent 100%);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.ultra-wide-right::after {
    content: '';
    position: absolute;
    right: 160px;
    top: 55%;
    width: 2px;
    height: 200px;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.15) 30%, 
        rgba(255, 255, 255, 0.15) 70%, 
        transparent 100%);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.ultra-wide-right .premium-pattern {
    position: absolute;
    right: 250px;
    top: 35%;
    width: 120px;
    height: 120px;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite reverse;
}

.ultra-wide-top {
    position: absolute;
    top: 0;
    left: 400px;
    right: 400px;
    height: 200px;
    background: 
        linear-gradient(180deg, 
            rgba(255, 255, 255, 0.06) 0%, 
            rgba(255, 255, 255, 0.03) 50%, 
            transparent 100%),
        repeating-linear-gradient(0deg, 
            transparent 0%, 
            transparent 29px, 
            rgba(255, 255, 255, 0.04) 30px, 
            rgba(255, 255, 255, 0.04) 31px, 
            transparent 32px);
    border-bottom: 3px solid rgba(255, 255, 255, 0.12);
}

.ultra-wide-bottom {
    position: absolute;
    bottom: 0;
    left: 400px;
    right: 400px;
    height: 200px;
    background: 
        linear-gradient(0deg, 
            rgba(255, 255, 255, 0.06) 0%, 
            rgba(255, 255, 255, 0.03) 50%, 
            transparent 100%),
        repeating-linear-gradient(0deg, 
            transparent 0%, 
            transparent 29px, 
            rgba(255, 255, 255, 0.04) 30px, 
            rgba(255, 255, 255, 0.04) 31px, 
            transparent 32px);
    border-top: 3px solid rgba(255, 255, 255, 0.12);
}

.ultra-wide-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: 
        radial-gradient(circle at center, 
            transparent 0%, 
            transparent 200px, 
            rgba(255, 255, 255, 0.02) 300px, 
            rgba(255, 255, 255, 0.04) 500px, 
            rgba(255, 255, 255, 0.02) 700px, 
            transparent 800px);
    pointer-events: none;
    z-index: 0;
    animation: centerGlow 8s ease-in-out infinite;
}

/* ========================================
   LOGIN CARD DESIGN
   ======================================== */
.login-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px);
    border-radius: 24px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 480px;
    padding: 56px 48px;
    position: relative;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: cardFloat 6s ease-in-out infinite;
}

.login-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.3), 
        rgba(255, 255, 255, 0.1), 
        rgba(255, 255, 255, 0.3));
    border-radius: 24px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.login-card:hover::before {
    opacity: 1;
}

/* ========================================
   BRAND SECTION
   ======================================== */
.brand-section {
    text-align: center;
    margin-bottom: 48px;
}

.brand-logo {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #ffd700, #ffed4e, #ffd700);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    box-shadow: 
        0 20px 40px rgba(255, 215, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    animation: logoGlow 3s ease-in-out infinite;
}

.brand-logo::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700);
    border-radius: 26px;
    z-index: -1;
    opacity: 0.5;
    filter: blur(10px);
}

.brand-logo i {
    font-size: 48px;
    color: #000;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.brand-title {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px 0;
    letter-spacing: -0.003em;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    background: linear-gradient(45deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-weight: 400;
    line-height: 1.23536;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* ========================================
   FORM SECTION
   ======================================== */
.form-section {
    margin-bottom: 40px;
}

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

.form-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    letter-spacing: -0.022em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.form-control {
    width: 100%;
    padding: 18px 24px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    font-size: 16px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-family: inherit;
    backdrop-filter: blur(10px);
}

.form-control:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 
        0 0 0 4px rgba(255, 215, 0, 0.2),
        0 8px 16px rgba(255, 215, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.form-control.is-invalid {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.2);
}

.invalid-feedback {
    color: #ff6b6b;
    font-size: 14px;
    margin-top: 8px;
    display: block;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* ========================================
   LOGIN BUTTON
   ======================================== */
.btn-login {
    width: 100%;
    background: linear-gradient(135deg, #ffd700, #ffed4e, #ffd700);
    border: none;
    border-radius: 16px;
    padding: 20px 28px;
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    letter-spacing: -0.022em;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 8px 16px rgba(255, 215, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    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.3), 
        transparent);
    transition: left 0.5s ease;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 24px rgba(255, 215, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.3);
}

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

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

/* ========================================
   FOOTER SECTION
   ======================================== */
.footer-section {
    text-align: center;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.33341;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.footer-link {
    color: #ffd700;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.footer-link:hover {
    color: #ffed4e;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.7; 
    }
    25% { 
        transform: translateY(-20px) rotate(90deg); 
        opacity: 0.9; 
    }
    50% { 
        transform: translateY(-40px) rotate(180deg); 
        opacity: 0.7; 
    }
    75% { 
        transform: translateY(-20px) rotate(270deg); 
        opacity: 0.9; 
    }
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 0.8; 
    }
    50% { 
        transform: scale(1.1); 
        opacity: 1; 
    }
}

@keyframes centerGlow {
    0%, 100% { 
        opacity: 0.5; 
        transform: translate(-50%, -50%) scale(1); 
    }
    50% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1.05); 
    }
}

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

@keyframes logoGlow {
    0%, 100% { 
        transform: scale(1); 
        filter: brightness(1); 
    }
    50% { 
        transform: scale(1.05); 
        filter: brightness(1.2); 
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Mobile styles - truly full width */
@media (max-width: 768px) {
    body {
        background: #0a0a0a;
    }
    
    .login-container {
        padding: 0;
        background: 
            radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%),
            linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    }
    
    .login-card {
        width: 100vw;
        max-width: 100vw;
        border-radius: 0;
        margin: 0;
        padding: 40px 24px;
        box-shadow: none;
        border: none;
        background: transparent;
        backdrop-filter: none;
        animation: none;
    }
    
    .floating-elements,
    .ultra-wide-decoration {
        display: none;
    }
    
    .brand-title {
        font-size: 32px;
    }
    
    .brand-subtitle {
        font-size: 16px;
    }
    
    .brand-logo {
        width: 80px;
        height: 80px;
    }
    
    .brand-logo i {
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 32px 20px;
    }
    
    .brand-title {
        font-size: 28px;
    }
    
    .brand-subtitle {
        font-size: 15px;
    }
    
    .form-control {
        padding: 16px 20px;
        font-size: 16px;
    }
    
    .btn-login {
        padding: 18px 24px;
        font-size: 16px;
    }
    
    .brand-logo {
        width: 70px;
        height: 70px;
    }
    
    .brand-logo i {
        font-size: 36px;
    }
}

@media (max-width: 360px) {
    .login-card {
        padding: 24px 16px;
    }
    
    .brand-title {
        font-size: 24px;
    }
    
    .form-control {
        padding: 14px 18px;
    }
    
    .btn-login {
        padding: 16px 20px;
    }
}

/* Desktop only styles */
@media (min-width: 769px) {
    .floating-elements,
    .ultra-wide-decoration {
        display: block;
    }
    
    .login-container {
        padding: 20px;
    }
}

/* Ultra-wide screen styles */
@media (min-width: 1920px) {
    .ultra-wide-left,
    .ultra-wide-right {
        width: 500px;
    }
    
    .ultra-wide-top,
    .ultra-wide-bottom {
        left: 500px;
        right: 500px;
    }
    
    .ultra-wide-center {
        width: 1000px;
        height: 1000px;
    }
}

@media (min-width: 2560px) {
    .ultra-wide-left,
    .ultra-wide-right {
        width: 600px;
    }
    
    .ultra-wide-top,
    .ultra-wide-bottom {
        left: 600px;
        right: 600px;
    }
    
    .ultra-wide-center {
        width: 1200px;
        height: 1200px;
    }
} 