/* 
   BeamIR Master Stylesheet (v0.19)
   Adhering to "Glow Standard" & "Water" Theme
*/

:root {
    --deep-indigo: #1a237e;
    --cyan: #00e5ff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-color: #ffffff;
    --error-color: #ff5252;
    --success-color: #4caf50;
    --transition-speed: 0.3s;
    --bezier: cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--deep-indigo), #0a0e2e);
    color: var(--text-color);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* --- Layout Components --- */
header {
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-sizing: border-box;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(to right, white, var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.nav-actions a {
    padding: 0.6rem 1.2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-speed) var(--bezier);
}

.nav-actions a:hover {
    background: var(--glass-border);
    transform: translateY(-2px);
}

main {
    flex: 1;
    padding-top: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Glass Elements --- */
.glass-card {
    backdrop-filter: blur(12px);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 1.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    position: relative;
    animation: fadeIn 0.5s var(--bezier);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Forms & Inputs --- */
.form-group {
    margin-bottom: 1.2rem;
    position: relative;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

input {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
    color: white;
    box-sizing: border-box;
    outline: none;
    transition: all var(--transition-speed) var(--bezier);
}

input:focus {
    border-color: var(--cyan);
}

/* --- Glow Standard (V2) --- */
.input-invalid {
    box-shadow: 0 0 10px rgba(255, 82, 82, 0.4);
    animation: shake 0.4s var(--bezier);
}

/* Valid state checkmarks removed (v0.19.3) */

/* --- Premium Buttons --- */
button {
    width: 100%;
    padding: 0.9rem;
    /* Dimmed background further for v0.28 (approx 15% more than v0.27) */
    background: linear-gradient(135deg, #212d8a, #006b9b);
    border: 2px solid var(--cyan);
    border-radius: 0.6rem;
    color: white;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition-speed) var(--bezier);
    margin-top: 1.2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 176, 255, 0.5);
    filter: brightness(1.1);
}

button:active:not(:disabled) {
    transform: scale(0.96);
}

button:disabled {
    opacity: 0.5;
    filter: grayscale(0.6);
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 229, 255, 0.4);
    box-shadow: none;
    text-shadow: none;
}

/* --- Animation Lib --- */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.alert {
    padding: 0.8rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: none;
}

.alert-error {
    background: rgba(255, 82, 82, 0.15);
    border: 1px solid var(--error-color);
    color: var(--error-color);
    animation: shake 0.5s var(--bezier);
}

/* --- Utility --- */
.links {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
}

.links a {
    color: var(--cyan);
    text-decoration: none;
    margin: 0 0.5rem;
    opacity: 0.8;
}

#v-stamp {
    position: fixed;
    bottom: 15px;
    right: 20px;
    opacity: 0.3;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 10;
}