/**
 * Universal Auth Wrapper - Styles
 * CSS für den Auth-Wrapper und das Login-Formular
 */

#auth-container {
    margin: 0 auto;
    padding: 20px;
    
    border-radius: 10px;
    box-shadow: none;
    font-family: 'Bambino-Regular ☞', 'Bambino-Light ☞', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    color: #333;
}

.login-form {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.login-form h1 {
    text-align: center;
    color: #f26d00;
    margin-bottom: 10px;
    font-family: 'Bambino-Bold ☞', sans-serif;
}

.login-form p {
    text-align: center;
    margin-bottom: 20px;
    color: #666;
    font-family: 'Bambino-Regular ☞', sans-serif;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input {
    width: 90%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Bambino-Regular ☞', sans-serif;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
    border-color: #f26d00;
    box-shadow: 0 0 0 2px rgba(18, 120, 88, 0.15);
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: none;
    font-family: 'Bambino-Regular ☞', sans-serif;
}

button {
    padding: 12px;
    background-color: #f26d00;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    width: 100%;
    font-family: 'Bambino-Bold ☞', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s;
    justify-content: center;
    align-items: center;
    position: relative;
}

button:hover {
    background-color: #f26d00;
}
ons-tabbar ons-tab:not([active]):hover .tabbar__icon svg,
ons-tabbar ons-tab:not([active]):hover .tabbar__label {
  color: white !important;
}

.tabbar__button{
    color:#666 !important;
}

button:disabled {
    background-color: #6c8d82;
    cursor: not-allowed;
}

.spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 2px solid #fff;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

button.loading span {
    opacity: 0.7;
}

button.loading .spinner {
    display: inline-block;
}

#email-sent {
    text-align: center;
    padding: 20px 0;
    font-family: 'Bambino-Regular ☞', sans-serif;
}

#debug-magic-link {
    margin-top: 20px;
    font-size: 14px;
    font-family: 'Bambino-Regular ☞', sans-serif;
}

/* Responsives Design */
@media (max-width: 480px) {
    #auth-container {
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
        padding: 15px;
    }
    
    .login-form {
        padding: 15px;
    }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    #auth-container {
        background-color: #1e1e1e;
        color: #e0e0e0;
        box-shadow: none;
    }
    
    .login-form h1 {
        color: #1a9d73;
    }
    
    .login-form p {
        color: #b0b0b0;
    }
    
    .form-group input {
        background-color: #2c2c2c;
        border-color: #3a3a3a;
        color: #e0e0e0;
    }
    
    .form-group input:focus {
        border-color: #1a9d73;
        box-shadow: 0 0 0 2px rgba(18, 120, 88, 0.25);
    }
    
    button {
        background-color: #f26d00;
    }
    
    button:hover {
        background-color: #0b5940;
    }
    
    button:disabled {
        background-color: #3a5f4e;
    }
    
    .error-message {
        color: #ff6b6b;
    }
} 