/* Auth Modal Styling */
.auth-modal-dialog {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
    /* Standard bootstrap value for centered */
    margin: 0.5rem auto;
    justify-content: center;
    max-width: 500px;
}

@media (min-width: 576px) {
    .auth-modal-dialog {
        min-height: calc(100% - 3.5rem);
        margin: 1.75rem auto;
    }
}

.auth-modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 20px;
    width: 100%;
    margin: auto;
}

.auth-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    opacity: 0.5;
}

.auth-modal-close:hover {
    opacity: 1;
}

.auth-wrapper {
    padding: 10px;
}

.auth-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #333;
    text-align: center;
}

.auth-input {
    border-radius: 8px;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    background-color: #f9f9f9;
    font-size: 15px;
}

.auth-input:focus {
    box-shadow: none;
    border-color: #FF6B6B;
    background-color: #fff;
    outline: none;
}

.input-group-text {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    border: 1px solid #e0e0e0;
    border-left: none;
}

.form-label {
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
    font-size: 14px;
}

.forgot-password-link {
    color: #FF6B6B;
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

.auth-btn-primary {
    background: #ff6b6b;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: 600;
    font-size: 16px;
    margin-top: 10px;
    transition: all 0.3s ease;
    color: white;
}

.auth-btn-primary:active,
.auth-btn-primary:focus {
    background: #ff5252;
    color: white;
    box-shadow: none !important;
}

.auth-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
    background-color: #ff5252;
    color: white;
}

.auth-divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.auth-divider:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #eee;
    z-index: 1;
}

.auth-divider span {
    background: #fff;
    padding: 0 15px;
    position: relative;
    z-index: 2;
    color: #999;
    font-size: 13px;
    text-transform: uppercase;
}

.auth-btn-social {
    border-radius: 8px;
    padding: 12px;
    font-weight: 500;
    color: #555;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    transition: all 0.2s;
}

.auth-btn-social:hover {
    background-color: #f8f9fa;
    border-color: #ddd;
    color: #333;
    transform: translateY(-1px);
}

.switch-to-signup,
.switch-to-login {
    color: #333;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid #333;
    padding-bottom: 2px;
    transition: all 0.3s;
    cursor: pointer;
}

.switch-to-signup:hover,
.switch-to-login:hover {
    color: #FF6B6B;
    border-color: #FF6B6B;
}

/* Checkbox style */
.form-check-input:checked {
    background-color: #FF6B6B;
    border-color: #FF6B6B;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 107, 0.25);
    border-color: #FF6B6B;
}

/* Ensure body doesn't scroll when modal is open - this is usually handled by bootstrap .modal-open */
body.modal-open {
    overflow: hidden !important;
    padding-right: 0 !important;
    /* Prevent shift if possible, though bootstrap adds padding */
}

/* Fix for blurry text on some screens */
.modal-content {
    -webkit-font-smoothing: antialiased;
}