/**
 * Login Modal CSS für AWO User Roles
 * Inspiriert von GitHub's Login-Modal Design
 */

/* Login-Modal */
.aur-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(255 255 255 / 90%);
    backdrop-filter: blur(4px);
}

.aur-modal-content {
    background-color: #ffffff;
    margin: 8% auto;
    padding: 32px;
    border: 1px solid #d0d7de;
    width: 90%;
    max-width: 400px;
    border-radius: 6px;
    position: relative;
    box-shadow: 0 8px 24px rgba(140, 149, 159, 0.2);
    animation: modalSlideIn 0.2s ease-out;
}

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

.aur-modal-close {
    color: #656d76;
    float: right;
    font-size: 24px;
    font-weight: 400;
    cursor: pointer;
    position: absolute;
    right: 16px;
    top: 16px;
    line-height: 1;
    transition: color 0.2s ease;
}

.aur-modal-close:hover,
.aur-modal-close:focus {
    color: #0969da;
}

.aur-modal h2 {
    margin: 0 0 24px 0;
    color: #24292f;
    font-size: 24px;
}

/* Hinweistext Styling */
.aur-modal-hint {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #495057;
    text-align: center;
}

/* Nicht-schließbare Modal */
.aur-modal.aur-protected-page .aur-modal-close {
    display: none;
}

.aur-modal.aur-protected-page {
    cursor: default;
}

.aur-modal.aur-protected-page .aur-modal-content {
    cursor: default;
}

/* Formular-Styles */
.aur-form-group {
    margin-bottom: 16px;
}

.aur-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #24292f;
    font-size: 14px;
}

.aur-form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.aur-form-group input:focus {
    outline: none;
    border-color: #0969da;
    box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.1);
}

.aur-btn {
    display: inline-block;
    padding: 14px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s ease, transform 0.1s ease;
    width: 100%;
    box-sizing: border-box;
}

.aur-btn-primary {
    background-color: #f59c00;
    color: white;
}

.aur-btn-primary:hover {
    background-color: #D28706;
    transform: translateY(-1px);
}

.aur-btn-primary:active {
    transform: translateY(0);
}

.aur-btn-secondary {
    background-color: #f6f8fa;
    color: #24292f;
    border: 1px solid #d0d7de;
}

.aur-btn-secondary:hover {
    background-color: #f3f4f6;
}

/* Nachrichten */
.aur-message {
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    border: 1px solid;
}

.aur-message.aur-success {
    background-color: #dafbe1;
    color: #1a7f37;
    border-color: #4ac26b;
}

.aur-message.aur-error {
    background-color: #ffebe9;
    color: #cf222e;
    border-color: #ff8182;
}

/* Alternative Login */
.aur-alternative-login {
    margin-top: 24px;
    font-size: 12px;
    color: #656d76;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .aur-modal-content {
        width: 75%;
        margin: 15% auto;
        padding: 24px;
    }
    
    .aur-modal h2 {
        font-size: 20px;
    }
} 