/* login.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', Courier, monospace;
    background: #0a0a0a;
    color: #00ff00;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    overflow: hidden;
}

#tsparticles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Main Login Terminal Container */
.login-terminal {
    width: 100%;
    max-width: 550px;
    background: rgba(10, 25, 10, 0.85);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.2), inset 0 0 15px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    font-family: 'Courier New', Courier, monospace;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.login-terminal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.3) 0px, rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 3px);
    animation: scanlines 15s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes scanlines {
    from { background-position: 0 0; }
    to { background-position: 0 100px; }
}

/* Terminal Header */
.terminal-header {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
}

.terminal-title {
    color: #ccc;
    font-size: 0.9rem;
}

.terminal-buttons {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

.t-btn { width: 12px; height: 12px; border-radius: 50%; }
.t-red { background: #ff5f56; }
.t-yellow { background: #ffbd2e; }
.t-green { background: #27c93f; }

/* Terminal Body Content */
.terminal-body {
    padding: 30px 35px;
    text-align: center;
}

.brand-section {
    margin-bottom: 20px;
}

.logo-link {
    text-decoration: none;
}

.logo-circle {
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(0, 255, 0, 0.2);
    box-shadow: inset 0 0 8px rgba(0,0,0,0.6);
    margin: 0 auto 20px;
    transition: all .3s ease;
}

.logo-circle:hover {
    transform: scale(1.1);
    box-shadow: inset 0 0 8px rgba(0,0,0,0.6), 0 0 15px rgba(0, 255, 0, 0.4);
}

.logo-image {
    max-width: 65%;
    object-fit: contain;
}

.brand-title {
    color: #27c93f;
    font-size: 1.8rem;
    margin-bottom: 8px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(39, 201, 63, 0.6);
    position: relative;
    text-transform: uppercase;
}

.subtitle {
    color: #888;
    font-size: 1rem;
    font-style: italic;
}

/* Google Sign-in Button */
.google-button {
    background: transparent;
    border: 1px solid rgba(0, 255, 0, 0.4);
    color: rgba(0, 255, 0, 0.7);
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1rem;
    padding: 14px 28px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.google-button:hover {
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    border-color: #00ff00;
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.7);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
}

.provider-icon {
    width: 20px;
    height: 20px;
}
/* Recolor Google SVG to match theme */
.provider-icon path {
    fill: #00ff00;
}

/* Security Note */
.security-note {
    margin-top: 30px;
    color: #747474;
    font-style: italic;
    font-size: 0.9rem;
}

.security-note::before {
    content: '// ';
}



/* --- New Additions for Password Toggle & Warning --- */

/* Wrapper for relative positioning of the eye icon */
.password-wrapper {
    position: relative;
    width: 100%;
}

/* The Eye Button */
.eye-btn {
    position: absolute;
    right: 12px;
    top: 12px; /* Matches padding of input */
    background: transparent;
    border: none;
    color: #399c00;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.eye-btn:hover {
    opacity: 1;
}

.eye-icon {
    width: 20px;
    height: 20px;
}

/* Disabled State Styling (for the warning period) */
.terminal-input:disabled,
.terminal-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #555;
    color: #555;
}

/* Development Warning Box */
.dev-warning {
    margin: 10px 0 20px 0;
    padding: 12px;
    background: rgba(255, 189, 46, 0.1); /* Low opacity yellow background */
    border: 1px dashed #ffbd2e; /* Matches the yellow terminal button */
    color: #ffbd2e;
    font-size: 0.8rem;
    text-align: left;
    font-family: 'Courier New', Courier, monospace;
}

.warning-title {
    font-weight: bold;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.warning-text {
    opacity: 0.9;
    line-height: 1.4;
}

/* --- Custom Terminal Modal (Enhanced) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-box {
    position: relative;
    width: 90%;
    max-width: 450px;
    background: #0a0a0a;
    border: 2px solid #399c00;
    box-shadow: 0 0 30px rgba(57, 156, 0, 0.4), inset 0 0 20px rgba(0, 0, 0, 0.8);
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden;
    animation: turnOn 0.2s ease-out forwards;
}

/* CRT Turn On Animation */
@keyframes turnOn {
    0% { transform: scale(1, 0.01); opacity: 0; }
    50% { transform: scale(1, 0.01); opacity: 1; }
    100% { transform: scale(1, 1); opacity: 1; }
}

/* Scanline Effect */
.modal-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0) 50%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.2)
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 2;
    opacity: 0.6;
}

.modal-header {
    background: #399c00;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    color: #000;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Blinking Cursor */
.blinking-cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.close-modal {
    color: #000;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}

.close-modal:hover { opacity: 0.7; }

.modal-body {
    padding: 30px 20px;
    color: #399c00;
    font-size: 1rem;
    line-height: 1.6;
    text-shadow: 0 0 5px rgba(57, 156, 0, 0.5);
    min-height: 100px;
    display: flex;
    align-items: center;
}

.modal-footer {
    padding: 0 20px 20px;
    display: flex;
    justify-content: flex-end;
}

/* Modal Button Style Override */
.modal-btn {
    width: auto;
    padding: 8px 20px;
    margin: 0;
    background: transparent;
    border: 1px solid #399c00;
    color: #399c00;
    box-shadow: none;
}

.modal-btn:hover {
    background: #399c00;
    color: #000;
    box-shadow: 0 0 15px rgba(57, 156, 0, 0.6);
}

