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

:root {
    --text-primary: #000000;
    --text-secondary: rgba(0, 0, 0, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.15);
    --bg-glass-strong: rgba(255, 255, 255, 0.2);
    --border-glass: rgba(255, 255, 255, 0.2);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-strong: 0 20px 40px rgba(0, 0, 0, 0.15);
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f8f9fa;
    background-image: url('/files/.internal/dashboard/view-transparent-crystal-water.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    color: #000000;
    position: relative;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
    z-index: 0;
}

.login-container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    animation: slideUp 0.8s ease-out;
    z-index: 1;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

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

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 16px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.02em;
}

.login-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 0;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.form-group {
    position: relative;
    margin-bottom: 32px;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    outline: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.form-input::placeholder {
    color: rgba(0, 0, 0, 0.6);
}

.form-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.form-label {
    position: absolute;
    left: 20px;
    top: 16px;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.8);
    pointer-events: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    top: -8px;
    left: 16px;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.9);
    background: var(--bg-glass);
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 28px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    margin-top: 8px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    letter-spacing: 0.01em;
}

.submit-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 1);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 16px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

.error-message {
    background: rgba(254, 215, 215, 0.2);
    backdrop-filter: blur(20px);
    color: rgba(197, 48, 48, 0.95);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 24px;
    border: 1px solid rgba(229, 62, 62, 0.3);
    box-shadow: 
        0 8px 32px rgba(229, 62, 62, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-align: center;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.7);
}

.security-badge::before {
    content: '🔒';
    margin-right: 8px;
}

/* Responsive design */
@media (max-width: 480px) {
    .login-container {
        padding: 32px 24px;
        margin: 0 16px;
    }
    
    .login-title {
        font-size: 28px;
    }
    
    .form-input {
        padding: 14px 16px;
        font-size: 16px;
    }
    
    .form-label {
        left: 16px;
        top: 14px;
    }
}

/* Loading state */
.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.submit-btn:disabled::before {
    display: none;
}
