/**
 * Styles für Authentifizierung (Login und Registrierung)
 * Für Vigthoria Landing Page
 */

.auth-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1100px;
    margin: 120px auto 60px;
    padding: 0 20px;
}

.auth-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    max-width: 500px;
    border: 1px solid rgba(108, 99, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.card-header {
    margin-bottom: 30px;
    text-align: center;
}

.card-header h2 {
    font-family: 'Orbitron', sans-serif;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 24px;
}

.card-header p {
    color: var(--text-primary);
    opacity: 0.7;
    font-size: 14px;
}

.card-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(108, 99, 255, 0.2);
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 10px 20px;
    font-size: 14px;
    opacity: 0.7;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:hover {
    opacity: 1;
}

.tab-btn.active {
    opacity: 1;
    font-weight: 600;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid rgba(108, 99, 255, 0.3);
    background-color: rgba(30, 41, 59, 0.3);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.2);
    outline: none;
}

.password-input {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input input {
    width: 100%;
    padding-right: 40px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-primary);
    opacity: 0.6;
    cursor: pointer;
    transition: all 0.3s ease;
}

.password-toggle:hover {
    opacity: 1;
}

.password-strength {
    margin-top: 5px;
}

.strength-meter {
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-bar {
    height: 100%;
    width: 20%; /* Default width */
    background-color: #ff4757; /* Default color - weak */
    transition: all 0.5s ease;
}

.strength-text {
    font-size: 12px;
    color: var(--text-primary);
    opacity: 0.7;
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
    -webkit-user-select: none;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(108, 99, 255, 0.3);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: rgba(108, 99, 255, 0.1);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.remember-me {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-left: auto;
}

.forgot-password:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.form-actions {
    margin-top: 10px;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4);
}

.social-login {
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid rgba(108, 99, 255, 0.1);
    padding-top: 20px;
}

.social-login p {
    color: var(--text-primary);
    opacity: 0.7;
    font-size: 14px;
    margin-bottom: 15px;
}

.social-buttons {
    display: flex;
    gap: 15px;
}

.btn-social {
    flex: 1;
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid rgba(108, 99, 255, 0.2);
    background-color: rgba(30, 41, 59, 0.3);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-social:hover {
    background-color: rgba(108, 99, 255, 0.1);
}

.btn-social i {
    font-size: 16px;
}

.btn-social.google i {
    color: #ea4335;
}

.btn-social.github i {
    color: #6e5494;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-primary);
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-footer a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.auth-features {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(108, 99, 255, 0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.auth-features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
}

.auth-features h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 18px;
}

.feature-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-primary);
}

.feature-list i {
    color: var(--secondary-color);
    font-size: 16px;
}

.auth-cta {
    margin-top: auto;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(108, 99, 255, 0.1);
}

.auth-cta p {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 14px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.affiliate-fields {
    padding-left: 10px;
    border-left: 2px solid var(--secondary-color);
}

/* Light Mode Adjustments */
[data-theme="light"] .auth-card,
[data-theme="light"] .auth-features {
    background-color: white;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .form-group input[type="text"],
[data-theme="light"] .form-group input[type="email"],
[data-theme="light"] .form-group input[type="password"] {
    background-color: rgba(248, 250, 252, 0.5);
    border-color: rgba(108, 99, 255, 0.2);
}

[data-theme="light"] .checkmark {
    background-color: rgba(248, 250, 252, 0.8);
}

[data-theme="light"] .btn-social {
    background-color: rgba(248, 250, 252, 0.8);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .auth-container {
        margin: 100px auto 40px;
    }
}

@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
        align-items: center;
    }
    
    .auth-card,
    .auth-features {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .auth-container {
        padding: 0 15px;
        margin: 80px auto 30px;
    }
    
    .auth-card,
    .auth-features {
        padding: 20px;
    }
    
    .social-buttons {
        flex-direction: column;
    }
}
