/**
 * Matrix Login Page Styles
 * @package app64K
 */

/* Matrix canvas background */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Body styling */
body.login {
    background: #000 !important;
    overflow: hidden;
}

/* Login form container */
#login {
    position: relative;
    z-index: 10;
    padding-top: 8%;
}

/* Logo area */
.login h1 a {
    background-image: none !important;
    text-indent: 0 !important;
    width: auto !important;
    height: auto !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #0f0 !important;
    text-shadow: 0 0 10px #0f0, 0 0 20px #0f0, 0 0 30px #0f0 !important;
    font-family: 'Courier New', monospace !important;
    letter-spacing: 3px;
}

.login h1 a:hover,
.login h1 a:focus {
    color: #fff !important;
    text-shadow: 0 0 10px #fff, 0 0 20px #0f0, 0 0 30px #0f0 !important;
}

/* Login form box */
.login form {
    background: rgba(0, 0, 0, 0.85) !important;
    border: 1px solid #0f0 !important;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3), inset 0 0 20px rgba(0, 255, 0, 0.05) !important;
    border-radius: 4px;
}

/* Labels */
.login label {
    color: #0f0 !important;
    font-family: 'Courier New', monospace !important;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

/* Input fields */
.login input[type="text"],
.login input[type="password"] {
    background: #000 !important;
    background-color: #000 !important;
    border: 1px solid #0a0 !important;
    color: #0f0 !important;
    font-family: 'Courier New', monospace !important;
    border-radius: 3px;
    box-shadow: inset 0 0 10px rgba(0, 255, 0, 0.1) !important;
    -webkit-appearance: none;
    appearance: none;
}

/* Chrome autofill override */
.login input:-webkit-autofill,
.login input:-webkit-autofill:hover,
.login input:-webkit-autofill:focus,
.login input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #000 inset !important;
    -webkit-text-fill-color: #0f0 !important;
    box-shadow: 0 0 0 1000px #000 inset !important;
    background-color: #000 !important;
    caret-color: #0f0 !important;
    transition: background-color 5000s ease-in-out 0s;
}

.login input[type="text"]:focus,
.login input[type="password"]:focus {
    border-color: #0f0 !important;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5), inset 0 0 10px rgba(0, 255, 0, 0.2) !important;
    outline: none !important;
}

.login input[type="text"]::placeholder,
.login input[type="password"]::placeholder {
    color: #060 !important;
}

/* Submit button */
.login .button-primary {
    background: #0a0 !important;
    border: 1px solid #0f0 !important;
    color: #000 !important;
    font-family: 'Courier New', monospace !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3) !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.login .button-primary:hover,
.login .button-primary:focus {
    background: #0f0 !important;
    border-color: #0f0 !important;
    color: #000 !important;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.6), 0 0 40px rgba(0, 255, 0, 0.3) !important;
}

/* Remember me checkbox - Custom Matrix Style */
.login .forgetmenot {
    display: flex;
    align-items: center;
}

.login .forgetmenot label {
    color: #0a0 !important;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.login input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    background: rgba(0, 10, 0, 0.9) !important;
    border: 2px solid #0a0 !important;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    margin-right: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.2), inset 0 0 5px rgba(0, 255, 0, 0.1);
}

.login input[type="checkbox"]:hover {
    border-color: #0f0 !important;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.4), inset 0 0 8px rgba(0, 255, 0, 0.2);
}

.login input[type="checkbox"]:checked {
    background: rgba(0, 40, 0, 0.9) !important;
    border-color: #0f0 !important;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5), inset 0 0 10px rgba(0, 255, 0, 0.3);
}

.login input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #0f0;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    box-shadow: 0 0 5px #0f0, 0 0 10px #0f0;
}

.login input[type="checkbox"]:focus {
    outline: none !important;
    border-color: #0f0 !important;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.6);
}

/* Links */
.login #nav,
.login #backtoblog {
    text-align: center;
}

.login #nav a,
.login #backtoblog a {
    color: #0a0 !important;
    font-family: 'Courier New', monospace !important;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
    transition: all 0.3s ease;
}

.login #nav a:hover,
.login #backtoblog a:hover {
    color: #0f0 !important;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.6);
}

/* Error/Message boxes */
.login .message,
.login .success,
.login #login_error {
    background: rgba(0, 0, 0, 0.9) !important;
    border-left: 4px solid #0f0 !important;
    color: #0f0 !important;
    font-family: 'Courier New', monospace !important;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2) !important;
}

.login #login_error {
    border-left-color: #f00 !important;
    color: #f00 !important;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.2) !important;
}

.login #login_error a {
    color: #f55 !important;
}

/* Privacy policy link */
.login .privacy-policy-page-link a {
    color: #060 !important;
    font-family: 'Courier New', monospace !important;
}

.login .privacy-policy-page-link a:hover {
    color: #0f0 !important;
}

/* Language switcher */
.login .language-switcher {
    background: rgba(0, 0, 0, 0.8) !important;
    border: 1px solid #0a0 !important;
}

.login .language-switcher select {
    background: rgba(0, 20, 0, 0.8) !important;
    color: #0f0 !important;
    border: 1px solid #0a0 !important;
}

/* Glowing animation for form */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.3), inset 0 0 20px rgba(0, 255, 0, 0.05);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 255, 0, 0.5), inset 0 0 30px rgba(0, 255, 0, 0.1);
    }
}

.login form {
    animation: glow 3s ease-in-out infinite;
}

/* Scanline effect overlay */
body.login::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1) 0px,
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 1000;
}
