﻿
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    color: #202124;
}

/* --- TOP BAR --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 1rem;
    z-index: 10;
}

    header img {
        height: 28px;
        width: auto;
    }

/* --- LOGIN CARD --- */
.container {
    background: white;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    margin-top: 6rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

    .container h1 {
        font-size: 1.4rem;
        font-weight: 600;
        margin-bottom: 1.5rem;
    }

.modal-logo {
    height: 32px;
    margin-bottom: 1rem;
}

.app-name {
    font-size: 1rem;
    color: #5f6368;
    margin-bottom: 1.5rem;
}

.modal-text {
    margin-bottom: 1.5rem;
    color: #202124;
    line-height: 1.5;
}

input {
    font-size: 1rem;
    padding: 0.75rem;
    width: 100%;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin-bottom: 1rem;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease;
}

    input:focus {
        border-color: #1a73e8;
        box-shadow: 0 0 0 1px #1a73e8;
    }

button {
    background: #1a73e8;
    color: white;
    border: none;
    padding: 0.75rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s;
    font-weight: 500;
}

    button:hover:not(:disabled) {
        background: #1558c0;
    }

    button:disabled {
        background: #a8c5f8;
        cursor: not-allowed;
    }

.hidden {
    display: none;
}

#message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    font-weight: bold;
    white-space: pre-wrap;
    text-align: left;
    font-size: 0.9rem;
}

.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

#qrCodeContainer {
    width: 200px;
    height: 200px;
    margin: 1rem auto;
}

.manual-key {
    font-family: monospace;
    background: #eee;
    padding: 0.5rem;
    border-radius: 4px;
    word-break: break-all;
    margin-bottom: 1rem;
}

/* --- FOOTER --- */
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: white;
    border-top: 1px solid #e0e0e0;
    padding: 0.8rem 0;
    text-align: center;
    font-size: 0.9rem;
}

    footer a {
        color: #1a73e8;
        text-decoration: none;
        margin: 0 0.75rem;
    }

        footer a:hover {
            text-decoration: underline;
        }

@media (max-height: 600px) {
    footer {
        position: static;
        margin-top: 2rem;
    }
}
