/* styles-ln.css - Login Page Styles */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fef9f0;
    min-height: 100vh;
    min-height: 100dvh;
    /* SEO F4: flex-oszlop, hogy a közös lábléc (site-footer, ld. seo/footer.html)
       a lap alján legyen, és ne lógjon be a hajtás alá. A régi align-items /
       justify-content a kikapcsolt flex maradéka volt: flex-oszlopban középre
       igazítanák a kártyát ÉS a láblécet is, ezért kikerültek. */
    display: flex;
    flex-direction: column;
    /*padding: 20px;*/
}

/* SEO F4: a közös lábléc a nézet aljára tapad, ha a kártya rövidebb; ha a
   tartalom hosszabb, az `auto` margó 0-ra vált, és a lábléc közvetlenül a
   kártya alá kerül (a 32px-es beige rést is megszünteti). */
body > .site-footer {
    flex: 0 0 auto;
    margin-top: auto;
}

.container {
    background: white;
    /*border-radius: 20px;*/
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 1200px !important;
    /* SEO F4 (2026-10-30) — a kártya SOHA ne vágódjon le.
       A body flex-oszlopában a kártya flex-elem, tehát alapból zsugorodhat
       (`flex-shrink: 1`), és az `overflow: hidden` miatt a kilógó tartalmat el
       is vágja. Rövid nézetben ez pontosan azt okozta, hogy a kártya a lábléc
       felső éléig zsugorodott, a „vagy jelentkezz be” alatti rész (Google-gomb,
       Regisztráció/Vissza sor) pedig láthatatlanul eltűnt — görgetősáv nélkül,
       mert a lap „befért”. A `flex: 0 0 auto` (nem zsugorodik) + `overflow:
       visible` együtt garantálja, hogy a tartalom megmarad, és ha nem fér ki a
       nézetbe, a lap inkább görgethető. */
    flex: 0 0 auto;
    overflow: visible;
}

.header {
    background: #fff;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    color: black;
    padding: 12px 40px;
    text-align: center;
}

.header h1 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

/* A login fejlécben nincs növekvő cím, ezért az ikonsort a jobb szélre tolja. */
.header .pub-header-actions {
    margin-left: auto;
}

.form-container {
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e1e1;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

input:focus {
    outline: none;
    border-color: #007AFF;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.btn {
    width: 100%;
    padding: 14px;
    background: #007AFF;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #0056CC;
    transform: translateY(-1px);
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.loading {
    display: none;
    text-align: center;
    margin-top: 20px;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007AFF;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.message {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
    display: none;
}

.success {
    background: #D5F4E6;
    color: #2E8B57;
    border: 1px solid #C1E1C1;
}

.error {
    background: #FFE6E6;
    color: #D8000C;
    border: 1px solid #FFB8B8;
}

.register-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.register-link a {
    color: #007AFF;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Target URL info box */
.target-info {
    background: #f0f9ff;
    border: 1px solid #fef9f0;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 20px;
    display: none;
}

.target-info .label {
    font-size: 12px;
    color: #0c4a6e;
    font-weight: 500;
    margin-bottom: 5px;
}

.target-info .function {
    font-size: 14px;
    color: #0369a1;
    font-weight: 600;
}

/* Google OAuth button styles */
.oauth-section {
    margin: 25px 0;
    text-align: center;
    position: relative;
}

.oauth-section .divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.oauth-section .divider::before,
.oauth-section .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e1e1e1;
}

.oauth-section .divider span {
    padding: 0 15px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 16px;
    background: white;
    color: #444;
    border: 2px solid #e1e1e1;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.google-btn:hover {
    background: #f8f9fa;
    border-color: #d0d0d0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.google-btn img {
    width: 20px;
    height: 20px;
    margin-right: 12px;
}

.oauth-btn-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.inline-error {
    color: #FF3B30;
    font-size: 12px;
    margin-top: 5px;
}

@media (max-width: 480px) {
    .container {
        border-radius: 12px;
    }
    
    .header {
        padding: 16px 20px;
    }

    /* 480px alatt a fejléc két sorba tör (logó + ikonsor, alatta a cím), hogy a
       három ikon ne szorítsa össze a „Bejelentkezés” címet. */
    .header h1 {
        flex: 1 1 100%;
        order: 3;
        font-size: 20px;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    .oauth-btn-container {
        flex-direction: column;
    }
}