/* ============================================
   PREMIUM LOGIN PAGE - GLASSMORPHISM & ANIMATED BACKGROUND
   ============================================ */

/* ============================================
   1. ANIMATED BACKGROUND ORBS
   ============================================ */

.login-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #121212;
    padding: var(--space-4);
    overflow: hidden;
}

/* Animated Gradient Orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #e65100 0%, #1e1b4b 70%);
    top: -10%;
    left: -10%;
    animation: float-1 25s ease-in-out infinite;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #1e1b4b 0%, #e65100 70%);
    bottom: -15%;
    right: -15%;
    animation: float-2 30s ease-in-out infinite;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #ff8555 0%, #2d1b69 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float-3 20s ease-in-out infinite;
}

/* Floating Animations */
@keyframes float-1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(100px, -80px) scale(1.1);
    }

    66% {
        transform: translate(-50px, 60px) scale(0.95);
    }
}

@keyframes float-2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-120px, 100px) scale(0.9);
    }

    66% {
        transform: translate(80px, -70px) scale(1.05);
    }
}

@keyframes float-3 {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(calc(-50% + 80px), calc(-50% + 120px)) scale(1.08);
    }
}

/* ============================================
   2. DECORATIVE HEXAGON
   ============================================ */

.hexagon-decoration {
    position: absolute;
    width: 500px;
    height: 500px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
    opacity: 0.15;
}

.hexagon-decoration::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    border: 2px solid #e65100;
    box-shadow:
        0 0 40px rgba(230, 81, 0, 0.4),
        inset 0 0 40px rgba(230, 81, 0, 0.2);
    animation: hexagon-pulse 4s ease-in-out infinite;
}

@keyframes hexagon-pulse {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.15;
    }

    50% {
        transform: scale(1.05) rotate(2deg);
        opacity: 0.25;
    }
}

/* ============================================
   3. LOGIN CONTAINER & GLASS CARD
   ============================================ */

.login-container {
    position: relative;
    width: 100%;
    max-width: 440px;
    z-index: 10;
}

.login-card {
    position: relative;
    background: rgba(30, 30, 40, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--space-12);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(230, 81, 0, 0.15);
    text-align: center;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

/* Top shine effect */
.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
}

/* Bottom glow effect */
.login-card::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            rgba(230, 81, 0, 0.5),
            transparent);
    filter: blur(4px);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* ============================================
   4. LOGO & BRANDING
   ============================================ */

.login-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: var(--space-6);
}

.login-icon img {
    height: 120px !important;
    width: auto;
    filter: drop-shadow(0 0 20px rgba(230, 81, 0, 0.3));
    animation: logo-glow 3s ease-in-out infinite;
}

@keyframes logo-glow {

    0%,
    100% {
        filter: drop-shadow(0 0 20px rgba(230, 81, 0, 0.3));
    }

    50% {
        filter: drop-shadow(0 0 30px rgba(230, 81, 0, 0.5));
    }
}

.login-subtitle {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-8);
    letter-spacing: 0.5px;
}

.login-lock-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-6);
    color: var(--color-text-tertiary);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ============================================
   5. FORM ELEMENTS
   ============================================ */

.login-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

/* Input Container for Floating Label Effect */
.input-group {
    position: relative;
    width: 100%;
}

.login-input {
    width: 100%;
    padding: var(--space-4) var(--space-3);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--color-text-primary);
    font-size: var(--font-size-base);
    text-align: left;
    transition: all var(--transition-base);
    outline: none;
}

.login-input::placeholder {
    color: var(--color-text-tertiary);
    opacity: 0.9;
}

.login-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    border-bottom-color: var(--color-accent-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Shake animation on error */
.login-input.error {
    animation: shake 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom-color: var(--color-error);
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    50% {
        transform: translateX(10px);
    }

    75% {
        transform: translateX(-10px);
    }
}

/* ============================================
   6. SUBMIT BUTTON
   ============================================ */

.login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    width: 100%;
    padding: var(--space-4);
    background: linear-gradient(135deg, #e65100 0%, #ff8555 100%);
    color: white;
    font-size: var(--font-size-base);
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    box-shadow:
        0 4px 12px rgba(230, 81, 0, 0.3),
        0 0 20px rgba(230, 81, 0, 0.2);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    margin-top: var(--space-2);
}

/* Ripple effect */
.login-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.login-button:hover {
    background: linear-gradient(135deg, #ff6b35 0%, #ff9a6c 100%);
    box-shadow:
        0 6px 20px rgba(230, 81, 0, 0.5),
        0 0 40px rgba(230, 81, 0, 0.4);
    transform: translateY(-2px);
}

.login-button:hover::before {
    width: 400px;
    height: 400px;
}

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

.login-button svg {
    transition: transform var(--transition-base);
}

.login-button:hover svg {
    transform: translateX(4px);
}

/* ============================================
   7. ERROR MESSAGE
   ============================================ */

.error-message {
    min-height: 24px;
    color: var(--color-error);
    font-size: var(--font-size-sm);
    text-align: center;
    font-weight: 500;
    padding: var(--space-2);
    border-radius: var(--radius-sm);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.error-message:empty {
    display: none;
}

/* ============================================
   8. RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 480px) {
    .login-card {
        padding: var(--space-8);
    }

    .login-icon img {
        height: 100px !important;
    }

    .hexagon-decoration {
        width: 350px;
        height: 350px;
    }

    .orb-1,
    .orb-2,
    .orb-3 {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 360px) {
    .login-card {
        padding: var(--space-6);
    }

    .login-subtitle {
        font-size: var(--font-size-sm);
    }
}