@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Bebas+Neue&family=Inter:wght@300;400;500;600&display=swap');

* {
    box-sizing: border-box;
}

body {
    background-color: #030805;
    /* Main grid pattern matching the image */
    background-image: 
        linear-gradient(to right, rgba(0, 255, 102, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 255, 102, 0.08) 1px, transparent 1px);
    background-size: 120px 120px;
    background-position: center top;
    font-family: 'Share Tech Mono', monospace;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    color: #e8f5ec;
}

/* Sub-grid for realism */
.bg-grid-small {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(0, 255, 102, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 255, 102, 0.02) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: center top;
    pointer-events: none;
    z-index: -1;
}

.top-logo {
    position: absolute;
    top: 40px;
    left: 40px;
}

@media (max-width: 600px) {
    .top-logo {
        position: relative;
        top: 0;
        left: 0;
        margin-bottom: 40px;
        text-align: center;
    }
}

.qax-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 52px;
    line-height: 0.9;
    letter-spacing: 0.05em;
    color: #ffffff;
}

.x-green {
    color: #00ff66;
}

.terminal-text {
    font-family: 'Share Tech Mono', monospace;
    font-size: 15px;
    letter-spacing: 0.15em;
    color: #a0c2af;
    margin-top: 4px;
}

.login-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 480px;
    padding: 0 20px;
}

.card {
    background: rgba(6, 15, 8, 0.85);
    backdrop-filter: blur(10px);
    border: 3px solid #00ff66;
    border-radius: 12px;
    box-shadow: 0 0 35px rgba(0, 255, 102, 0.25), inset 0 0 20px rgba(0, 255, 102, 0.15);
    width: 100%;
    overflow: hidden;
    margin-bottom: 24px;
}

.card-header {
    border-bottom: 3px solid #00ff66;
    padding: 24px 20px 16px;
    text-align: center;
}

.card-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 42px;
    letter-spacing: 0.04em;
    color: #e8f5ec;
    margin: 0;
    text-shadow: 0 0 20px rgba(0, 255, 102, 0.8), 0 0 30px rgba(0, 255, 102, 0.4);
}

.card-body {
    padding: 32px 36px 40px;
}

.form-group {
    margin-bottom: 24px;
    width: 100%;
}

.form-label {
    display: block;
    font-family: 'Share Tech Mono', monospace;
    font-size: 15px;
    color: #a5bbae;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.form-input {
    width: 100%;
    background: #111a14;
    border: 3px solid #00ff66;
    border-radius: 8px;
    color: #ffffff;
    font-family: 'Share Tech Mono', monospace;
    font-size: 18px;
    padding: 16px 16px;
    outline: none;
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.15), inset 0 0 15px rgba(0, 255, 102, 0.2);
    transition: box-shadow 0.2s, background 0.2s;
}

.form-input:focus {
    background: #0b2214;
    box-shadow: 0 0 25px rgba(0, 255, 102, 0.4), inset 0 0 20px rgba(0, 255, 102, 0.3);
}

.btn-glow-wrap {
    margin-top: 36px;
    filter: drop-shadow(0 0 20px rgba(0, 255, 102, 0.6));
}

.btn {
    background-color: #00ff66;
    color: #000000;
    border: none;
    padding: 18px 24px;
    font-size: 22px;
    font-weight: bold;
    font-family: 'Share Tech Mono', monospace;
    letter-spacing: 0.1em;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
    clip-path: polygon(
        0 0, 
        100% 0, 
        100% calc(100% - 18px), 
        calc(100% - 18px) 100%, 
        18px 100%, 
        0 calc(100% - 18px)
    );
}

.btn:hover:not(:disabled) {
    background-color: #33ff85;
}

.btn:active:not(:disabled) {
    background-color: #00cc52;
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.forgot-link {
    font-family: 'Share Tech Mono', monospace;
    font-size: 15px;
    color: #00ff66;
    text-decoration: underline;
    text-underline-offset: 6px;
    letter-spacing: 0.05em;
    transition: color 0.2s, text-shadow 0.2s;
}

.forgot-link:hover {
    color: #33ff85;
    text-shadow: 0 0 15px rgba(0, 255, 102, 0.8);
}

/* Success State */
.form-success {
    display: none;
    text-align: center;
    width: 100%;
    flex-direction: column;
    align-items: center;
}

.checkmark-wrapper {
    margin-bottom: 20px;
}

.checkmark {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 0 12px rgba(0, 255, 102, 0.8));
}

.checkmark path {
    stroke: #00ff66;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
}
.form-success.show .checkmark path {
    animation: draw 0.6s ease-out forwards;
}

@keyframes draw {
    from { stroke-dashoffset: 100; }
    to { stroke-dashoffset: 0; }
}

.message {
    color: #e8f5ec;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 36px;
    letter-spacing: 0.08em;
    text-shadow: 0 0 10px rgba(0, 255, 102, 0.5);
}
