/* Reset és alapok */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0c0e1a 0%, #1a1e3e 50%, #2d1b4e 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.container {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    width: 1000px;
    max-width: 95%;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ====== BEJELENTKEZÉSI OLDAL ====== */
.login-box {
    flex: 1.2;
    padding: 50px 40px;
    position: relative;
    z-index: 2;
}

/* Háttér animált alakzatok */
.bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: floatShape 20s infinite ease-in-out;
}

.shape1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #6c5ce7, #a29bfe);
    top: -150px;
    right: -150px;
    animation-delay: 0s;
}

.shape2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #fd79a8, #e17055);
    bottom: -80px;
    left: -80px;
    animation-delay: -5s;
}

.shape3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, #00cec9, #0984e3);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Fejléc */
.login-header {
    text-align: center;
    margin-bottom: 35px;
    position: relative;
    z-index: 1;
}

.logo {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 30px;
    color: white;
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.4);
    transition: transform 0.3s;
}

.logo:hover {
    transform: rotate(-10deg) scale(1.05);
}

.login-header h1 {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.login-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    margin-top: 5px;
}

/* Alert üzenetek */
.alert {
    padding: 12px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.4s ease;
    position: relative;
    z-index: 1;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-error {
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

.alert-success {
    background: rgba(0, 206, 201, 0.2);
    border: 1px solid rgba(0, 206, 201, 0.3);
    color: #00cec9;
}

/* Űrlap */
.login-form {
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 22px;
    position: relative;
}

.form-group label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.form-group label i {
    margin-right: 8px;
    color: #6c5ce7;
    width: 16px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.07);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: #fff;
    font-size: 15px;
    transition: all 0.3s;
    outline: none;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus {
    border-color: #6c5ce7;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.15);
}

.input-focus-border {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6c5ce7, #a29bfe);
    transition: all 0.4s;
    border-radius: 2px;
}

.form-group input:focus ~ .input-focus-border {
    left: 0;
    width: 100%;
}

/* Jelszó megjelenítő */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 18px;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: #fff;
}

/* Opciók */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.remember-me input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    display: inline-block;
    position: relative;
    transition: all 0.3s;
    flex-shrink: 0;
}

.remember-me input:checked + .checkmark {
    background: #6c5ce7;
    border-color: #6c5ce7;
}

.remember-me input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
}

.forgot-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.forgot-link:hover {
    color: #a29bfe;
}

/* Bejelentkezés gomb */
.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.4);
}

.login-btn:active {
    transform: scale(0.98);
}

.login-btn .btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Regisztráció link */
.register-link {
    text-align: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.register-link a {
    color: #a29bfe;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.register-link a:hover {
    color: #6c5ce7;
}

/* Social login */
.social-login {
    text-align: center;
    margin-top: 25px;
    position: relative;
    z-index: 1;
}

.social-login p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    margin-bottom: 12px;
    position: relative;
}

.social-login p::before,
.social-login p::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.social-login p::before { left: 0; }
.social-login p::after { right: 0; }

.social-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
    transition: all 0.3s;
    text-decoration: none;
    font-size: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-btn:hover {
    transform: translateY(-3px);
}

.social-btn.google:hover { background: #ea4335; border-color: #ea4335; }
.social-btn.facebook:hover { background: #1877f2; border-color: #1877f2; }
.social-btn.github:hover { background: #333; border-color: #333; }

/* ====== INFORMÁCIÓS OLDAL ====== */
.info-side {
    flex: 1;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.2), rgba(162, 155, 254, 0.1));
    padding: 50px 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.info-side::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.15), transparent 70%);
    border-radius: 50%;
    top: -200px;
    right: -200px;
}

.info-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.info-content h2 {
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
}

.info-content > p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
    margin-bottom: 30px;
}

.info-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.feature:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.feature i {
    width: 30px;
    height: 30px;
    background: rgba(108, 92, 231, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a29bfe;
    font-size: 14px;
}

.info-image {
    font-size: 80px;
    color: rgba(162, 155, 254, 0.2);
    margin-top: 10px;
    animation: pulseRobot 3s infinite ease-in-out;
}

@keyframes pulseRobot {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.05); opacity: 0.3; }
}

/* Reszponzív */
@media (max-width: 850px) {
    .container {
        flex-direction: column;
        max-width: 450px;
        min-height: auto;
        margin: 20px;
    }
    
    .info-side {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        padding: 30px 25px;
    }
    
    .info-side::before {
        display: none;
    }
    
    .login-box {
        padding: 30px 25px;
    }
    
    .info-features {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .feature {
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 400px) {
    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .login-box {
        padding: 20px;
    }
}
