/* TrimmGo Bejelentkezés Oldal Stílusok */

/* Alapértelmezett stílusok */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #FAC697 0%, #652410 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Bejelentkezés container */
.bejelentkezes-container {
    width: 100%;
    max-width: 420px;
    position: relative;
}

/* Bejelentkezés kártya */
.bejelentkezes-kartya {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Kártya fejléc */
.kartya-fejlec {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    color: white;
    text-align: center;
    padding: 40px 30px 30px;
    position: relative;
}

.kartya-fejlec::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: #fff;
    border-radius: 20px 20px 0 0;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 2.5rem;
    color: #ffd700;
}

.logo h1 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.alcim {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Kártya tartalom */
.kartya-tartalom {
    padding: 30px;
}

.kartya-tartalom h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 25px;
    font-weight: 600;
}

/* Üzenetek */
.uzenet {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.hiba-uzenet {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.siker-uzenet {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.uzenet i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Form stílusok */
.bejelentkezes-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mezo-csoport {
    position: relative;
}

.mezo-cimke {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #495057;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.mezo-cimke i {
    font-size: 0.9rem;
    color: #6c757d;
    width: 16px;
}

.mezo-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.mezo-input:focus {
    outline: none;
    border-color: #4e73df;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.1);
}

.mezo-input::placeholder {
    color: #9ca3af;
}

/* Jelszó mező */
.jelszo-mezo {
    position: relative;
}

.jelszo-megmutat {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: color 0.3s ease;
}

.jelszo-megmutat:hover {
    color: #4e73df;
}

.jelszo-megmutat.aktiv {
    color: #4e73df;
}

.jelszo-mezo .mezo-input {
    padding-right: 50px;
}

/* Mező hiba */
.mezo-hiba {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    min-height: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.mezo-hiba:empty {
    display: none;
}

/* Checkbox */
.checkbox-csoport {
    margin: 10px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    color: #495057;
    font-size: 0.95rem;
}

.checkbox-input {
    display: none;
}

.checkbox-egyedi {
    width: 20px;
    height: 20px;
    border: 2px solid #e1e5e9;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-input:checked + .checkbox-egyedi {
    background: #4e73df;
    border-color: #4e73df;
}

.checkbox-input:checked + .checkbox-egyedi::after {
    content: '\2713';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
}

/* Bejelentkezés gomb */
.bejelentkezes-gomb {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin: 10px auto 0 auto;
    position: relative;
    overflow: hidden;
    width: fit-content;
    min-width: 200px;
}

.bejelentkezes-gomb::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.bejelentkezes-gomb:hover::before {
    left: 100%;
}

.bejelentkezes-gomb:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(78, 115, 223, 0.3);
}

.bejelentkezes-gomb:active {
    transform: translateY(0);
}

.bejelentkezes-gomb:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.bejelentkezes-gomb:disabled::before {
    display: none;
}

/* Kártya lábléc */
.kartya-lablec {
    background: #f8f9fa;
    padding: 25px 30px;
    border-top: 1px solid #e3e6f0;
}

.linkek {
    text-align: center;
    margin-bottom: 20px;
}

.link {
    color: #4e73df;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.link:hover {
    color: #224abe;
    text-decoration: underline;
}

.link i {
    font-size: 0.85rem;
}

.info {
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
}

.info p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.info i {
    font-size: 0.8rem;
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4e73df;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

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

.loading-overlay p {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Animációk */
.mezo-input.hiba {
    border-color: #dc3545;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Responsivitás */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .bejelentkezes-kartya {
        border-radius: 12px;
    }
    
    .kartya-fejlec {
        padding: 30px 20px 25px;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .logo i {
        font-size: 2rem;
    }
    
    .kartya-tartalom {
        padding: 25px 20px;
    }
    
    .kartya-tartalom h2 {
        font-size: 1.5rem;
    }
    
    .kartya-lablec {
        padding: 20px;
    }
    
    .mezo-input {
        padding: 12px 14px;
    }
    
    .bejelentkezes-gomb {
        padding: 14px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 380px) {
    .logo {
        flex-direction: column;
        gap: 10px;
    }

    .mezo-cimke {
        font-size: 0.9rem;
    }

    .mezo-input {
        font-size: 0.95rem;
    }
}

/* Toast Notification System */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
}

.toast {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease-in-out;
    max-width: 100%;
    word-wrap: break-word;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.hide {
    transform: translateX(100%);
    opacity: 0;
}

.toast-success {
    border-left: 4px solid #28a745;
    background: #d4edda;
    color: #155724;
}

.toast-error {
    border-left: 4px solid #dc3545;
    background: #f8d7da;
    color: #721c24;
}

.toast-warning {
    border-left: 4px solid #ffc107;
    background: #fff3cd;
    color: #856404;
}

.toast-info {
    border-left: 4px solid #17a2b8;
    background: #d1ecf1;
    color: #0c5460;
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    color: #28a745;
}

.toast-error .toast-icon {
    color: #dc3545;
}

.toast-warning .toast-icon {
    color: #ffc107;
}

.toast-info .toast-icon {
    color: #17a2b8;
}

.toast-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

.toast-close:hover {
    color: #343a40;
}

/* Regisztrációs form specifikus stílusok */
.regisztracio-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mezo-sor {
    display: flex;
    gap: 1rem;
}

.mezo-sor .mezo-csoport {
    flex: 1;
}

.help-text {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
}

.regisztracio-form h3 {
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .mezo-sor {
        flex-direction: column;
        gap: 0;
    }
}

/* Subdomain input mobilon */
@media (max-width: 420px) {
    .toast-container {
        left: 10px;
        right: 10px;
        max-width: none;
    }
}