/* --- ENHANCED LOGIN PAGE STYLES WITH MODERN EFFECTS --- */

/* Import modern fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.Login {
    width: 100vw;
    height: 100vh;
    position: relative;
    background: linear-gradient(135deg, #181A26 0%, #1f212e 25%, #262840 75%, #181A26 100%);
}

/* Enhanced Background dan Overlay */
.background-image {
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    position: absolute;
    object-fit: cover;
    z-index: 1;
    transition: transform 20s ease-in-out;
    animation: slowZoom 20s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.overlay {
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    position: absolute;
    background: linear-gradient(135deg, 
        rgba(24, 26, 38, 0.4) 0%, 
        rgba(44, 47, 63, 0.3) 25%, 
        rgba(0, 0, 0, 0.2) 50%, 
        rgba(24, 26, 38, 0.4) 100%);
    backdrop-filter: blur(3px);
    z-index: 2;
}

/* Floating particles effect */
.overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(140, 224, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(140, 224, 255, 0.08) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 120px 120px, 180px 180px, 240px 240px;
    animation: floatParticles 25s ease-in-out infinite;
}

@keyframes floatParticles {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(15px, -15px) rotate(120deg); }
    66% { transform: translate(-15px, 15px) rotate(240deg); }
}

/* Enhanced Header */
.header {
    width: 100vw;
    height: 7.13vh;
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #181A26 0%, rgba(24, 26, 38, 0.95) 100%);
    z-index: 10;
    display: flex;
    align-items: center;
    padding-left: 2.58vw;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(140, 224, 255, 0.1);
}

.logo-square {
    width: 1.46vw;
    height: 2.5vh;
    background: linear-gradient(135deg, #8CE0FF 0%, #6bd4ff 100%);
    flex-shrink: 0;
    min-width: 35px;
    min-height: 35px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(140, 224, 255, 0.3);
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 15px rgba(140, 224, 255, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 6px 20px rgba(140, 224, 255, 0.5); }
}

.brand-name {
    color: #D3D3D9;
    font-size: clamp(16px, 1.85vh, 24px);
    margin-left: 0.86vw;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Enhanced Login Container */
.login-container {
    width: 480px;
    max-width: 90vw;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(24, 26, 38, 0.95) 0%, rgba(31, 33, 46, 0.95) 100%);
    border-radius: 30px;
    z-index: 5;
    padding: var(--spacing-xl) var(--spacing-lg);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(140, 224, 255, 0.2);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Animated border effect */
.login-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #8CE0FF, #6bd4ff, #4fc3ff, #8CE0FF);
    border-radius: 32px;
    z-index: -1;
    animation: borderRotate 6s linear infinite;
    opacity: 0.3;
}

@keyframes borderRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.login-title {
    text-align: center;
    color: #D4D4D4;
    font-size: var(--font-size-3xl);
    font-family: 'Playfair Display', serif;
    margin-bottom: 40px;
    font-weight: 600;
    background: linear-gradient(135deg, #D4D4D4 0%, #8CE0FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.login-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #8CE0FF, #6bd4ff);
    border-radius: 2px;
    animation: titleUnderline 2s ease-in-out infinite;
}

@keyframes titleUnderline {
    0%, 100% { opacity: 0.6; width: 60px; }
    50% { opacity: 1; width: 100px; }
}

/* Enhanced Input Container */
.input-container {
    width: 100%;
    background: linear-gradient(135deg, rgba(52, 54, 70, 0.6) 0%, rgba(38, 40, 64, 0.6) 100%);
    border-radius: 25px;
    padding: 30px 25px;
    margin-bottom: 25px;
    border: 2px solid rgba(140, 224, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.input-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(140, 224, 255, 0.05), transparent);
    transition: left 0.6s ease;
}

.input-container:hover::before {
    left: 100%;
}

.input-container:hover {
    border-color: rgba(140, 224, 255, 0.3);
    box-shadow: 0 8px 25px rgba(140, 224, 255, 0.1);
    transform: translateY(-2px);
}

.input-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    position: relative;
}

.input-field:last-child {
    margin-bottom: 0;
}

.input-label {
    color: #D4D4D4;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-label::before {
    content: '✨';
    font-size: 14px;
    opacity: 0.7;
}

/* Enhanced Input Fields */
.form-input {
    background: linear-gradient(135deg, rgba(24, 26, 38, 0.8) 0%, rgba(31, 33, 46, 0.8) 100%);
    border: 2px solid rgba(140, 224, 255, 0.2);
    border-radius: 15px;
    color: #D4D4D4;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    outline: none;
    padding: 15px 20px;
    position: relative;
    font-weight: 500;
}

.form-input:focus {
    border-color: #8CE0FF;
    background: linear-gradient(135deg, rgba(24, 26, 38, 0.95) 0%, rgba(31, 33, 46, 0.95) 100%);
    box-shadow: 0 0 0 4px rgba(140, 224, 255, 0.15);
    transform: scale(1.02);
}

.form-input::placeholder {
    color: rgba(143, 140, 140, 0.8);
    font-style: italic;
}

/* Floating label effect */
.input-field {
    position: relative;
}

.form-input:focus + .floating-label,
.form-input:not(:placeholder-shown) + .floating-label {
    transform: translateY(-35px) scale(0.9);
    color: #8CE0FF;
}

.floating-label {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    color: rgba(143, 140, 140, 0.8);
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(24, 26, 38, 0.9), rgba(31, 33, 46, 0.9));
    padding: 0 5px;
    border-radius: 4px;
}

/* Enhanced Divider */
.input-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(140, 224, 255, 0.3), transparent);
    margin: 20px 0;
    border-radius: 1px;
    position: relative;
}

.input-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, rgba(52, 54, 70, 0.8), rgba(38, 40, 64, 0.8));
    border-radius: 50%;
    border: 2px solid rgba(140, 224, 255, 0.3);
}

/* Enhanced Forgot Password */
.forgot-password {
    color: #8CE0FF;
    font-size: 14px;
    text-align: right;
    margin-bottom: 30px;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    display: inline-block;
    margin-left: auto;
}

.forgot-password::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #8CE0FF, #6bd4ff);
    transition: width 0.3s ease;
}

.forgot-password:hover::after {
    width: 100%;
}

.forgot-password:hover {
    color: #6bd4ff;
    transform: translateY(-1px);
}

/* Enhanced Login Button */
.login-button {
    width: 100%;
    height: 55px;
    background: linear-gradient(135deg, #8CE0FF 0%, #6bd4ff 50%, #4fc3ff 100%);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #181A26;
    font-size: 16px;
    cursor: pointer;
    border: none;
    margin-bottom: 25px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(140, 224, 255, 0.3);
}

.login-button::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.6s ease;
}

.login-button:hover::before {
    left: 100%;
}

.login-button:hover {
    background: linear-gradient(135deg, #6bd4ff 0%, #4fc3ff 50%, #3db8ff 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(140, 224, 255, 0.4);
}

.login-button:active {
    transform: translateY(-1px) scale(1.01);
}

/* Loading state for button */
.login-button.loading {
    pointer-events: none;
    background: linear-gradient(90deg, #8CE0FF 25%, #6bd4ff 50%, #8CE0FF 75%);
    background-size: 200% 100%;
    animation: buttonLoading 1.5s infinite;
}

@keyframes buttonLoading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Enhanced Error Messages */
.error-message {
    color: #ff6b6b;
    font-size: 13px;
    margin-top: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 107, 107, 0.2);
    animation: errorShake 0.5s ease-in-out;
}

.error-message::before {
    content: '⚠️';
    font-size: 14px;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Enhanced Success Messages */
.success-message {
    color: #8CE0FF;
    text-align: center;
    margin-bottom: 25px;
    font-size: 14px;
    font-weight: 600;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(140, 224, 255, 0.15), rgba(140, 224, 255, 0.05));
    border-radius: 15px;
    border: 2px solid rgba(140, 224, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: successGlow 2s ease-in-out infinite;
}

.success-message::before {
    content: '✨';
    font-size: 16px;
}

@keyframes successGlow {
    0%, 100% { box-shadow: 0 4px 15px rgba(140, 224, 255, 0.2); }
    50% { box-shadow: 0 6px 25px rgba(140, 224, 255, 0.4); }
}

/* Enhanced Footer */
.footer {
    width: 100vw;
    height: 120px;
    position: absolute;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, #181A26 0%, rgba(24, 26, 38, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(140, 224, 255, 0.1);
}

.footer-text {
    text-align: center;
    color: #D4D4D4;
    font-size: 16px;
    max-width: 600px;
    line-height: 1.6;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .login-container {
        width: 95%;
        padding: 35px 30px;
        border-radius: 25px;
    }
    
    .login-title {
        font-size: 30px;
        margin-bottom: 35px;
    }
    
    .input-container {
        padding: 25px 20px;
        border-radius: 20px;
    }
    
    .input-label {
        font-size: 15px;
    }
    
    .form-input {
        font-size: 15px;
        padding: 12px 16px;
    }
    
    .login-button {
        font-size: 15px;
        height: 50px;
        border-radius: 25px;
    }
    
    .footer-text {
        font-size: 14px;
    }
    
    .header {
        padding-left: 20px;
    }
    
    .brand-name {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .login-container {
        width: 100%;
        margin: 0;
        border-radius: 0;
        height: 100vh;
        justify-content: center;
        padding: 40px 25px;
    }
    
    .login-title {
        font-size: 26px;
    }
    
    .input-container {
        padding: 20px 15px;
    }
    
    .form-input {
        padding: 10px 14px;
    }
}

/* Additional interactive effects */
.form-input:hover {
    border-color: rgba(140, 224, 255, 0.4);
    transform: translateY(-1px);
}

/* Focus indicator for accessibility */
.form-input:focus-visible {
    outline: 2px solid #8CE0FF;
    outline-offset: 2px;
}

/* Smooth page transition */
.Login {
    animation: pageLoad 1s ease-out;
}

@keyframes pageLoad {
    from { opacity: 0; }
    to { opacity: 1; }
}