:root {
    /* Premium Dark & Gold Palette (NO PURPLE) */
    --color-bg-darkest: #050505;
    --color-bg-panel: #0a0a0a;
    --color-bg-input: #111111;
    --color-gold-muted: #8c762e;
    --color-gold-bright: #d4af37;
    --color-gold-hover: #e5cd6e;
    --color-text-primary: #ffffff;
    --color-text-muted: #888888;
    --color-danger: #c23333;
    
    /* Typography */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Geometry: Sharp Lines (0px radius) */
    --radius-none: 0px;
    
    /* Effects */
    --transition-standard: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-darkest);
    color: var(--color-text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Layout Fragmented 70/30 */
.login-layout {
    display: flex;
    min-height: 100vh;
}

/* Visual Left (70%) */
.login-visual {
    flex: 7;
    position: relative;
    background-color: var(--color-bg-darkest);
    background-image: linear-gradient(to right, rgba(5,5,5,0.2) 1px, transparent 1px), 
                      linear-gradient(to bottom, rgba(5,5,5,0.2) 1px, transparent 1px);
    background-size: 50px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--color-bg-darkest) 80%);
    pointer-events: none;
    z-index: 10;
}

/* Masonic Symbol */
.masonic-symbol-container {
    opacity: 0.15;
    position: absolute;
    z-index: 1;
    transform: scale(3.5);
    color: var(--color-gold-muted);
}

.masonic-symbol {
    width: 200px;
    height: 200px;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.2));
}

/* Typography Over Visual */
.brand-typography {
    position: relative;
    z-index: 20;
    text-align: center;
    letter-spacing: 0.2em;
    animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-gold-bright);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 40px rgba(212, 175, 55, 0.3);
}

.brand-subtitle {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 300;
}

/* Panel Right (30%) */
.login-panel {
    flex: 3;
    min-width: 400px;
    background-color: var(--color-bg-panel);
    border-left: 1px solid rgba(212, 175, 55, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    z-index: 30;
    position: relative;
    box-shadow: -20px 0 50px rgba(0,0,0,0.8);
}

.form-wrapper {
    width: 100%;
    max-width: 320px;
    animation: slideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.form-header {
    margin-bottom: 3rem;
}

.form-header h2 {
    font-family: var(--font-heading);
    color: var(--color-gold-bright);
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.form-header p {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* Forms (Sharp Edges) */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}

.input-group input {
    background-color: var(--color-bg-input);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-primary);
    padding: 1rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    border-radius: var(--radius-none); /* BRUTALIST SHARP */
    transition: var(--transition-standard);
}

.input-group input:focus {
    border-color: var(--color-gold-bright);
    box-shadow: inset 4px 0 0 var(--color-gold-bright);
}

/* Button */
.btn-primary {
    background-color: transparent;
    border: 1px solid var(--color-gold-bright);
    color: var(--color-gold-bright);
    padding: 1rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: var(--transition-standard);
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-none);
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--color-gold-bright);
    transition: var(--transition-standard);
    z-index: -1;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary:hover {
    color: var(--color-bg-darkest);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: var(--color-text-muted);
    color: var(--color-text-muted);
}

.btn-primary:disabled::before {
    width: 0%;
}

.error-message {
    color: var(--color-danger);
    font-size: 0.8rem;
    border-left: 2px solid var(--color-danger);
    padding-left: 0.5rem;
    animation: shake 0.4s ease-in-out;
}

/* System Status Footer */
.system-status {
    margin-top: 2rem;
    font-size: 0.7rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-gold-bright);
    border-radius: 50%;
    animation: flash 2s infinite;
}

/* Loading Spinner */
.loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-bottom-color: var(--color-bg-darkest);
    border-radius: 50%;
    display: inline-block;
    animation: rotation 1s linear infinite;
}

.btn-primary:hover .loader {
    border-bottom-color: var(--color-text-primary);
}

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

/* Responsive Focus */
@media (max-width: 900px) {
    .login-layout {
        flex-direction: column;
    }
    .login-visual {
        flex: 1;
        min-height: 30vh;
    }
    .brand-title {
        font-size: 2.5rem;
    }
    .masonic-symbol-container {
        transform: scale(2);
    }
    .login-panel {
        flex: 2;
        min-width: 100%;
        border-left: none;
        border-top: 1px solid rgba(212, 175, 55, 0.15);
    }
}
