/* ============================
   GLOBAL RESET
============================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* ============================
   BODY (ALAP DARK)
============================ */
body {
    min-height: 100vh;
    background: linear-gradient(135deg, #1e293b, #020617);
    color: white;
}

/* ============================
   HERO – minden oldalon
============================ */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #1e293b, #020617);
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
}

.hero-content p {
    margin: 20px 0;
    font-size: 1.6rem;
}



/* ============================
   FORM BOX (login + register)
============================ */
.form-box {
    background: #020617;
    padding: 30px;
    border-radius: 12px;
    width: 350px;
    border: 1px solid #1e293b;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
    text-align: center;
}

.form-box input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid #1e293b;
    background: #0f172a;
    color: white;
}

/* ============================
   GOMBOK
============================ */
.btn {
    display: inline-block;
    width: 100%;
    padding: 12px;
    background: #38bdf8;
    color: black;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    transition: 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    background: #0ea5e9;
}

.btn-outline {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    border: 2px solid #38bdf8;
    color: #38bdf8;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
}

.btn-outline:hover {
    background: #38bdf8;
    color: black;
}

.btn-index {
    padding: 8px 32px;
    min-width: 180px;
    font-size: 1.2rem;
    border-radius: 6px;
}

/* ============================
   MODE SWITCH (pozíció)
============================ */
.mode-switch {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 20;
}

/* ============================
   ANIMÁCIÓK
============================ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fade 1s forwards;
}

@keyframes fade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================
   LIGHT MODE
============================ */
body.light-mode {
    background: #f5f5f5;
    color: #1e293b;
}

body.light-mode .hero {
    background: linear-gradient(135deg, #ffffff, #e0e7ff);
}

body.light-mode .form-box {
    background: #ffffff;
    color: #1e293b;
    border-color: #cbd5e1;
}

body.light-mode input {
    background: #e2e8f0;
    color: #1e293b;
    border-color: #cbd5e1;
}

body.light-mode .btn {
    background: #38bdf8;
    color: white;
}

body.light-mode .btn-outline {
    border-color: #38bdf8;
    color: #38bdf8;
}

body.light-mode .btn-outline:hover {
    background: #38bdf8;
    color: white;
}

/* ============================
   JELSZÓ INFO TOOLTIP
============================ */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    width: 100%;
    padding-right: 40px; /* hely az ikon számára */
}

.password-info {
    position: absolute;
    right: 10px;
    cursor: pointer;
    font-size: 1.2rem;
    user-select: none;
}

.tooltip {
    display: none;
    position: absolute;
    right: 0;
    top: 30px;
    background: #0f172a;
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    width: 260px;
    font-size: 0.9rem;
    border: 1px solid #1e293b;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
    z-index: 10;
}

/* Hover esetén jelenjen meg */
.password-info:hover .tooltip {
    display: block;
}

/* Light mode */
body.light-mode .tooltip {
    background: #ffffff;
    color: #1e293b;
    border-color: #cbd5e1;
}

