/* Login Page Styles - Event Horizon Theme */

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

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
}

/* Grid overlay - inherited from global style.css body background */
.grid-overlay {
    display: none;
}

/* Stars container */
.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--blueprint-blue);
    border-radius: 50%;
    animation: twinkle 3s infinite ease-in-out;
    opacity: 0.3;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.8; }
}

/* Login card */
.login-card {
    position: relative;
    z-index: 10;
    background: #fffffe;
    border: var(--border-style-blue);
    padding: 3rem;
    max-width: 440px;
    width: 100%;
}

.login-card::before,
.login-card::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px dashed rgba(66, 141, 255, 0.3);
}

.login-card::before {
    top: -10px;
    left: -10px;
    border-right: none;
    border-bottom: none;
}

.login-card::after {
    bottom: -10px;
    right: -10px;
    border-left: none;
    border-top: none;
}

/* Header */
.login-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.logo-title {
    font-family: var(--font-monospace);
    font-size: 2rem;
    font-weight: 700;
    color: var(--blueprint-text);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.logo-subtitle {
    font-family: var(--font-monospace);
    font-size: 0.85rem;
    color: var(--blueprint-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Black hole visual */
.horizon-visual {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 1.5rem auto;
}

.horizon-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid var(--blueprint-blue);
    border-radius: 50%;
    animation: pulse 4s infinite ease-out;
}

.horizon-circle:nth-child(1) {
    width: 100px;
    height: 100px;
    animation-delay: 0s;
    opacity: 0.3;
}

.horizon-circle:nth-child(2) {
    width: 70px;
    height: 70px;
    animation-delay: 0.5s;
    opacity: 0.5;
}

.horizon-circle:nth-child(3) {
    width: 40px;
    height: 40px;
    animation-delay: 1s;
    opacity: 0.7;
}

.horizon-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: var(--blueprint-blue);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--blueprint-blue);
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }
}

/* Error message */
.error-message {
    background: var(--blueprint-bg);
    border: 1px dashed var(--blueprint-red);
    color: var(--blueprint-red);
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.error-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    background: var(--blueprint-red);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.75rem;
}

/* Flash messages */
.flash-message {
    padding: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.flash-success {
    background: var(--blueprint-tint);
    border: 1px dashed var(--blueprint-green);
    color: var(--blueprint-green);
}

.flash-info {
    background: var(--blueprint-tint);
    border: 1px dashed var(--blueprint-blue);
    color: var(--blueprint-blue);
}

.flash-error {
    background: var(--blueprint-bg);
    border: 1px dashed var(--blueprint-red);
    color: var(--blueprint-red);
}

/* Login content */
.login-content {
    text-align: center;
}

.login-instruction {
    color: var(--blueprint-text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Google button */
.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 24px;
    background: #fffffe;
    border: 2px solid var(--blueprint-border);
    color: var(--blueprint-text);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.google-btn:hover {
    border-color: var(--blueprint-blue);
}

.google-btn:active {
    transform: translateY(1px);
}

.google-icon {
    width: 20px;
    height: 20px;
}

/* GitHub sign-in button */
.github-btn {
    background: #24292e;
    color: #ffffff;
    border-color: #24292e;
}

.github-btn:hover {
    background: #1b1f23;
    border-color: #1b1f23;
}

.github-icon {
    width: 20px;
    height: 20px;
}

/* Access notice */
.access-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--blueprint-surface);
    border: 1px dashed var(--blueprint-border);
    color: var(--blueprint-text-light);
    font-size: 0.85rem;
}

.notice-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    min-width: 18px;
    background: var(--blueprint-blue);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.7rem;
    font-style: italic;
}

/* Footer */
.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: var(--border-style);
}

.login-footer p {
    font-family: var(--font-monospace);
    font-size: 0.8rem;
    color: var(--blueprint-text-light);
    font-style: italic;
    letter-spacing: 0.5px;
}

/* Creator Credit */
.creator-credit {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-monospace);
    font-size: 0.75rem;
    color: var(--blueprint-text-light);
    opacity: 0.7;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.creator-credit .heart {
    color: var(--blueprint-red);
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
}

.creator-credit strong {
    color: var(--blueprint-blue);
    font-weight: 600;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.2); }
    28% { transform: scale(1); }
    42% { transform: scale(1.2); }
    56% { transform: scale(1); }
}

/* Responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 2rem;
    }

    .logo-title {
        font-size: 1.5rem;
    }

    .horizon-visual {
        width: 100px;
        height: 100px;
    }

    .creator-credit {
        font-size: 0.65rem;
        white-space: normal;
        text-align: center;
        width: 90%;
        bottom: 1rem;
    }
}
