/* Gaya Login macOS */
body.login {
    font-family: 'SF Mono', Monaco, monospace;
    background: linear-gradient(-45deg, #001220, #003366, #0066cc, #0099ff);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

@keyframes gradientBG {
    0% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
    100% { background-position: 0% 50% }
}

body.login::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent 0,
        rgba(0, 255, 255, 0.1) 1px,
        transparent 2px
    );
    animation: scanline 2s linear infinite;
}

@keyframes scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(100vh); }
}

#login-form {
    background: rgba(0, 18, 32, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2),
                inset 0 0 15px rgba(0, 255, 255, 0.1);
    padding: 40px;
    width: 360px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 30px rgba(0, 255, 255, 0.2); }
    50% { box-shadow: 0 0 50px rgba(0, 255, 255, 0.4); }
    100% { box-shadow: 0 0 30px rgba(0, 255, 255, 0.2); }
}

.form-row {
    margin-bottom: 20px;
    position: relative;
}

.form-row input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 4px;
    background-color: rgba(0, 18, 32, 0.7);
    font-size: 15px;
    color: #00ffff;
    transition: all 0.3s ease;
    font-family: 'SF Mono', Monaco, monospace;
}

.form-row input:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    animation: inputPulse 1.5s infinite;
}

@keyframes inputPulse {
    0% { border-color: rgba(0, 255, 255, 0.3); }
    50% { border-color: rgba(0, 255, 255, 0.8); }
    100% { border-color: rgba(0, 255, 255, 0.3); }
}

.form-row label {
    color: #00ffff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.submit-row {
    margin-top: 24px;
}

.submit-row input[type="submit"] {
    width: 100%;
    background: linear-gradient(45deg, #003366, #0066cc);
    color: #00ffff;
    border: 1px solid rgba(0, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.submit-row input[type="submit"]:hover {
    background: linear-gradient(45deg, #0066cc, #0099ff);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.4);
    transform: scale(1.02);
}

.errornote {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff3b30;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
    animation: errorBlink 2s infinite;
}

@keyframes errorBlink {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

.password-reset-link {
    text-align: center;
    margin-top: 16px;
}

.password-reset-link a {
    color: #00ffff;
    text-decoration: none;
    font-size: 14px;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.password-reset-link a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}