/* 
 * login.css · DECENSORWEB SECURE LOGIN
 * R-CORP ACCOUNTABILITY · TACTICAL AESTHETIC
 */

.login-container {
    max-width: 500px;
    width: 90%;
    margin: 40px auto;
    padding: 40px 30px;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid #3a1a1a;
    box-shadow: 12px 12px 0 rgba(139, 0, 0, 0.3),
        0 0 0 1px #330000 inset;
    position: relative;
}

.login-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.insignia {
    font-size: 2rem;
    color: #ff0000;
    text-shadow: 2px 2px 0 #3a0000;
}

.login-title {
    color: #ff0000;
    font-size: 2rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    font-weight: 900;
    margin: 0;
    text-shadow: 3px 3px 0 #300000;
}

.doctrine-banner {
    background: #1a0a0a;
    border-left: 6px solid #8b0000;
    padding: 12px;
    margin-bottom: 30px;
    text-align: center;
}

.doctrine-text {
    color: #ffaaaa;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.login-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    color: #ffaaaa;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: #0a0a0a;
    border: 1px solid #8b0000;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #ff0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
    background: #1a1a1a;
}

.form-input::placeholder {
    color: #553333;
    font-style: italic;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-input {
    width: 18px;
    height: 18px;
    accent-color: #8b0000;
}

.checkbox-label {
    color: #cccccc;
    font-size: 0.9rem;
}

.alert {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-left: 6px solid;
    font-size: 0.9rem;
}

.alert.error {
    background: #2a0a0a;
    border-left-color: #ff5555;
    color: #ffaaaa;
}

.alert.success {
    background: #0a2a0a;
    border-left-color: #55ff55;
    color: #aaffaa;
}

.form-actions {
    margin-top: 30px;
}

.login-button {
    width: 100%;
    padding: 16px;
    background: #1e1e1e;
    color: #ff9999;
    border: 2px solid #ff0000;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 6px 6px 0 #2a0000;
}

.login-button:hover {
    background: #8b0000;
    color: #000000;
    border-color: #ffffff;
    box-shadow: 8px 8px 0 #1a0000;
    transform: translate(-2px, -2px);
}

.login-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 15px 0;
    border-top: 1px dashed #8b0000;
    border-bottom: 1px dashed #8b0000;
}

.auth-link {
    color: #ff8888;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 5px 10px;
    border-bottom: 1px dashed #ff5555;
}

.auth-link:hover {
    color: #ffffff;
    border-bottom: 1px solid #ffffff;
}

.link-separator {
    color: #8b4b4b;
    font-size: 1.2rem;
}

.accountability-footer {
    margin-top: 30px;
}

.footer-doctrine {
    padding: 12px;
    background: #1a0a0a;
    border-left: 6px solid #8b0000;
    margin-bottom: 15px;
    text-align: center;
}

.doctrine-short {
    color: #ddbbbb;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.login-fingerprint {
    text-align: center;
    margin-top: 20px;
    font-family: monospace;
    color: #6b4b4b;
    font-size: 0.7rem;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .login-container {
        width: 95%;
        padding: 25px 15px;
        margin: 20px auto;
    }

    .login-title {
        font-size: 1.5rem;
        letter-spacing: 3px;
    }

    .insignia {
        font-size: 1.5rem;
    }

    .login-links {
        flex-direction: column;
        gap: 10px;
    }

    .link-separator {
        display: none;
    }

    .footer-nav {
        flex-direction: column;
    }

    .back-btn {
        width: 100%;
        text-align: center;
    }
}

/* ========== PASSWORD STRENGTH METER ========== */
.password-strength-meter {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.strength-bar {
    flex: 1;
    height: 6px;
    background: #1a1a1a;
    border: 1px solid #8b0000;
    border-radius: 0;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    background: #ff5555;
    transition: width 0.3s ease, background 0.3s ease;
}

.strength-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    min-width: 70px;
    text-align: right;
}

/* Password strength colors */
.strength-0 .strength-fill {
    background: #ff5555;
}

.strength-1 .strength-fill {
    background: #ff8888;
}

.strength-2 .strength-fill {
    background: #ffaa55;
}

.strength-3 .strength-fill {
    background: #aaff55;
}

.strength-4 .strength-fill {
    background: #55ff55;
}

.strength-5 .strength-fill {
    background: #00ff00;
}

/* ========== PASSWORD TOGGLE ========== */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #8b0000;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
    z-index: 10;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #ff5555;
}

.password-toggle:focus {
    outline: 2px solid #ff5555;
    outline-offset: 2px;
}

/* ========== PGP REFERENCE ========== */
.pgp-reference {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 12px;
    background: #0a0a0a;
    border: 1px dashed #8b4b4b;
}

.pgp-icon {
    font-size: 1.2rem;
    color: #ffaa55;
}

.pgp-text {
    color: #ccaa88;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ========== ALERT ANIMATIONS ========== */
.alert {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.alert.error {
    background: #2a0a0a;
    border-left: 6px solid #ff5555;
    color: #ffaaaa;
}

.alert.success {
    background: #0a2a0a;
    border-left: 6px solid #55ff55;
    color: #aaffaa;
}

.alert.warning {
    background: #2a1a0a;
    border-left: 6px solid #ffaa55;
    color: #ffccaa;
}

.alert.info {
    background: #0a1a2a;
    border-left: 6px solid #5555ff;
    color: #aaaaff;
}

/* ========== DISABLED BUTTON STATE ========== */
.login-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: #4a4a4a;
    border-color: #666666;
    box-shadow: 3px 3px 0 #2a2a2a;
}

.login-button:disabled:hover {
    transform: none;
    background: #4a4a4a;
    color: #ff9999;
    box-shadow: 3px 3px 0 #2a2a2a;
}

/* ========== FOCUS INDICATORS ========== */
.form-input:focus-visible {
    outline: 2px solid #ff5555;
    outline-offset: 2px;
}

.checkbox-input:focus-visible+.checkbox-label {
    outline: 2px solid #ff5555;
    outline-offset: 4px;
}

/* ========== ERROR HIGHLIGHTING ========== */
.form-input.error {
    border-color: #ff5555;
    box-shadow: 0 0 8px rgba(255, 85, 85, 0.3);
}
