/**
 * Login & Register Styles für liVexo
 */

body.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--white);
    padding: 12px;
}

.login-container {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 24px 28px;
    width: 100%;
    max-width: 420px;
}

.register-container {
    max-width: 500px;
}

/* Header */
.login-header {
    text-align: center;
    margin-bottom: 10px;
}

.login-logo-img {
    height: 44px;
    width: auto;
    margin-bottom: 4px;
}


/* Title Row */
.login-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.login-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.register-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.register-link:hover {
    text-decoration: underline;
}

/* Form Groups */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--focus-ring-primary);
}

/* Input with Icon */
.input-with-icon {
    position: relative;
}

.input-with-icon .form-control {
    padding-left: 44px;
    padding-right: 44px;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    stroke: var(--gray-500);
    pointer-events: none;
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle .eye-icon {
    width: 20px;
    height: 20px;
    stroke: var(--gray-500);
}

.password-toggle:hover .eye-icon {
    stroke: var(--primary-color);
}

/* Options Row */
.options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 14px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 13px;
    color: var(--gray-600);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkbox-label span {
    line-height: 1.4;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.forgot-link {
    color: var(--gray-500);
    text-decoration: none;
    font-size: 13px;
}

.forgot-link:hover {
    color: var(--primary-color);
}

/* Buttons */
.btn-login {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-login:hover {
    background: var(--primary-dark);
}

/* Messages */
.error-message {
    background: var(--alert-error-bg);
    border: 1px solid var(--alert-error-border);
    color: var(--error-color);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.error-list {
    margin: 0;
    padding-left: 20px;
}

.error-list li {
    margin-bottom: 4px;
}

.error-list li:last-child {
    margin-bottom: 0;
}

.resend-link {
    display: inline;
    background: none;
    border: none;
    color: var(--error-color);
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    margin-left: 4px;
    font-weight: 600;
}

.resend-link:hover {
    opacity: 0.8;
}

.success-message {
    background: var(--alert-success-bg);
    border: 1px solid var(--alert-success-border);
    color: var(--success-hover);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Footer */
.login-footer {
    text-align: center;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-200);
    font-size: 11px;
    color: var(--gray-500);
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Register specific */
.form-row {
    display: flex;
    gap: 16px;
}

.form-group.half {
    flex: 1;
}

.terms-checkbox {
    margin-top: 8px;
}

.terms-checkbox span {
    font-size: 13px;
    color: var(--gray-600);
}

.back-to-login {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--gray-600);
}

.back-to-login a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.back-to-login a:hover {
    text-decoration: underline;
}

/* Form Hint */
.form-hint {
    font-size: 12px;
    color: var(--gray-500);
    margin: -4px 0 8px 0;
    line-height: 1.4;
}

/* Location Autocomplete */
.location-autocomplete-wrapper {
    position: relative;
}

.location-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 240px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.location-result-item {
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-color);
    cursor: pointer;
    transition: background 0.15s;
}

.location-result-item:hover {
    background: var(--gray-100);
}

.location-clear-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--error-color);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--white);
    padding: 0;
}

.location-clear-btn:hover {
    opacity: 0.85;
}

/* Select Styling */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Responsive */
@media (max-width: 480px) {
    .login-container {
        padding: 20px 16px;
        margin: 6px;
}

    .options-row {
        flex-direction: row;
        align-items: center;
        gap: 8px;
}

    .form-row {
        flex-direction: column;
        gap: 0;
}
}

/* ===== Auth-Helper Utility-Klassen (2026-05-12 B13-Migration) ===== */

.auth-helper-text {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 14px;
}

.auth-hint-text {
    color: var(--text-muted);
    font-size: 12px;
}

.auth-back-link-container {
    text-align: center;
    margin-top: 16px;
}

.auth-inline-form {
    display: inline;
    margin: 0;
    padding: 0;
}
