/* |--------------------------------------------------------------------------
| AUTH PAGE STYLING (Dark Theme)
|--------------------------------------------------------------------------
*/

body {
    margin: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
    font-family: system-ui, -apple-system, sans-serif;
}

.card {
    width: 380px;
    background: #1e293b;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.45);
    border: 1px solid #334155;
}

/* BRAND LOGO STYLING */
.login-brand {
    text-align: center;
    margin-bottom: 30px; /* Απόσταση από τα tabs */
}

.login-brand img {
    height: 60px;       /* Ρύθμισε το ύψος ανάλογα με το λογότυπό σου */
    width: auto;        /* Κρατάει την αναλογία */
    max-width: 100%;    /* Να μην βγαίνει έξω από την κάρτα */
    display: inline-block;
}

/* TABS */
.tabs {
    display: flex;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #334155;
}

.tabs button {
    flex: 1;
    padding: 12px;
    border: 0;
    background: #0f172a;
    color: #94a3b8;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.tabs button.active {
    background: #6366f1;
    color: #fff;
}

/* FORMS */
.input-group {
    margin-bottom: 15px;
}

input {
    width: 100%;
    padding: 12px;
    background: #0f172a;
    border: 1px solid #334155;
    color: #fff;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
    box-sizing: border-box; /* Σημαντικό για να μην βγαίνει έξω */
}

input:focus {
    border-color: #6366f1;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: #6366f1;
    border: 0;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    font-size: 15px;
    margin-top: 10px;
    transition: background 0.2s;
}

.submit-btn:hover {
    background: #4f46e5;
}

/* MESSAGES */
.msg {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    min-height: 20px;
    color: #94a3b8;
}

.msg.error { color: #ef4444; }
.msg.success { color: #22c55e; }

.footer-link {
    text-align: center;
    margin-top: 20px;
}

.footer-link a {
    color: #64748b;
    text-decoration: none;
    font-size: 13px;
}
.footer-link a:hover { color: #94a3b8; }

/* --- LANGUAGE SWITCHER (INSIDE CARD) --- */
.card {
    position: relative; /* Απαραίτητο για να δουλέψει το absolute των σημαιών */
}

.card-lang-switch {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
}

.flag-icon {
    width: 22px;
    height: auto;
    cursor: pointer;
    opacity: 0.4;
    transition: all 0.2s;
    filter: grayscale(100%); /* Ασπρόμαυρες οι ανενεργές */
}

.flag-icon:hover {
    opacity: 0.8;
    transform: scale(1.1);
    filter: grayscale(0%);
}

.flag-icon.active {
    opacity: 1;
    filter: grayscale(0%); /* Έγχρωμη η ενεργή */
    transform: scale(1.1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    border-radius: 2px;
}