/* Bejelentkezési oldal stílusok - Főoldallal harmonizáló dizájn */
.login-main {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8fafb 0%, #ffffff 100%);
    position: relative;
}

.login-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%230d6efd" stroke-width="0.5" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.8;
    pointer-events: none;
}

.login-container {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.1);
    border: 1px solid rgba(13, 110, 253, 0.2);
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    animation: slideUp 0.6s ease-out;
    position: relative;
    z-index: 1;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.9rem;
}

.form-label i {
    color: #3CB8E6;
    font-size: 0.85rem;
}

.form-input {
    padding: 0.875rem 1rem;
    border: 1px solid rgba(60, 184, 230, 0.2);
    border-radius: 12px;
    background: #ffffff;
    color: #2c3e50;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
    font-family: 'Spartan', sans-serif;
    width: 100%;
}

.form-input::placeholder {
    color: #6c757d;
}

.form-input:focus {
    border-color: #3CB8E6;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(60, 184, 230, 0.1);
}

.form-input:valid {
    border-color: rgba(34, 197, 94, 0.5);
}

.form-input.error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-input-container .form-input {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 0.875rem;
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
    z-index: 2;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
}

.password-toggle:hover {
    color: #3CB8E6;
    background: rgba(60, 184, 230, 0.1);
}

.password-toggle:focus {
    outline: 2px solid rgba(60, 184, 230, 0.3);
    outline-offset: 2px;
}

.checkbox-group {
    margin: 0.5rem 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #2c3e50;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 1px solid rgba(13, 110, 253, 0.3);
    border-radius: 4px;
    background: #ffffff;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 1px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    border-color: #0d6efd;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.btn-login {
    background: linear-gradient(135deg, #3CB8E6, #2a9fd6);
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-family: 'Spartan', sans-serif;
}

.btn-login:hover {
    background: linear-gradient(135deg, #2a9fd6, #1e8bc3);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(60, 184, 230, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login:disabled {
    background: rgba(100, 100, 100, 0.5);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.login-options {
    text-align: center;
    margin: 1.5rem 0 1rem 0;
}

.forgot-password-link {
    color: #3CB8E6;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.forgot-password-link:hover {
    color: #2a9fd6;
    text-decoration: underline;
}

.register-link {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(60, 184, 230, 0.1);
}

.register-link p {
    color: #6c757d;
    margin: 0;
    font-size: 0.9rem;
}

.register-link a {
    color: #3CB8E6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.register-link a:hover {
    color: #2a9fd6;
    text-decoration: underline;
}

.error-message {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: none;
    animation: fadeIn 0.3s ease;
}

.error-message.show {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-message {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
    padding: 0.875rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: none;
    animation: slideDown 0.4s ease;
}

.success-message.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-main {
        padding: 1rem;
        min-height: calc(100vh - 120px);
    }
    
    .login-container {
        padding: 1.5rem;
        margin: 0 1rem;
        max-width: none;
        width: calc(100% - 2rem);
    }
    
    .login-title {
        font-size: 1.5rem;
    }
    
    .login-subtitle {
        font-size: 0.9rem;
    }
    
    .form-input {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .password-input-container .form-input {
        padding-right: 2.75rem;
    }
    
    .btn-login {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 1.25rem;
        margin: 0 0.5rem;
        width: calc(100% - 1rem);
    }
    
    .login-title {
        font-size: 1.375rem;
    }
    
    .form-input {
        padding: 0.625rem;
    }
    
    .password-input-container .form-input {
        padding-right: 2.5rem;
    }
    
    .btn-login {
        padding: 0.75rem 1.25rem;
    }
    
    .checkbox-label {
        font-size: 0.85rem;
    }
}

@media (max-width: 360px) {
    .login-container {
        padding: 1rem;
    }
    
    .login-title {
        font-size: 1.25rem;
    }
    
    .login-subtitle {
        font-size: 0.85rem;
    }
}