/* Shared styles for the auth card pages (Register + AcceptInvitation).
   All rules are scoped under .register-section so the global stylesheet
   does not leak into admin/booking pages. */

.register-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.register-section .register-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    padding: 3rem 2.5rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.register-section .register-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.register-section .register-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.register-section .register-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
}

.register-section .register-icon i {
    font-size: 2.5rem;
    color: white;
}

.register-section .invite-invalid-icon {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.3);
}

.register-section .invite-loading {
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.register-section .register-header h2 {
    color: #212529;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.register-section .register-header p {
    color: #6c757d;
    font-size: 1.1rem;
    margin: 0;
}

.register-section .register-form {
    margin-bottom: 2rem;
}

.register-section .existing-site-info {
    background: #eef5fd;
    border: 1px solid #cfe2f3;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    color: #495057;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.register-section .existing-site-info i {
    color: #28a745;
    margin-top: 0.15rem;
}

.register-section .existing-site-info p {
    margin: 0;
    line-height: 1.5;
}

.register-section .site-name-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.85rem;
}

.register-section .form-group {
    margin-bottom: 1.5rem;
}

.register-section .form-label {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
    display: block;
}

.register-section .input-group {
    position: relative;
}

.register-section .input-group-text {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #e9ecef;
    border-right: none;
    color: #6c757d;
    border-radius: 10px 0 0 10px;
    transition: all 0.3s ease;
}

.register-section .form-control {
    border: 2px solid #e9ecef;
    border-left: none;
    border-radius: 0 10px 10px 0;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fff;
}

.register-section .form-control:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.15);
    background-color: #fff;
}

.register-section .form-control:focus + .input-group-text,
.register-section .input-group:focus-within .input-group-text {
    border-color: #28a745;
    color: #28a745;
}

.register-section .btn-register {
    width: 100%;
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    color: white;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.register-section .btn-register:hover {
    background: linear-gradient(135deg, #218838 0%, #1a9e7c 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.3);
}

.register-section .register-links {
    border-top: 1px solid #e9ecef;
    padding-top: 1.5rem;
}

.register-section .login-prompt {
    color: #6c757d;
    font-size: 0.95rem;
}

.register-section .login-link {
    color: #28a745;
    text-decoration: none;
    font-weight: 600;
    margin-left: 0.5rem;
    transition: color 0.3s ease;
}

.register-section .login-link:hover {
    color: #218838;
    text-decoration: underline;
}

.register-section .validation-summary {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
}

.register-section .field-validation {
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

.register-section .alert {
    border-radius: 10px;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: none;
}

.register-section .alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.register-section .alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

@media (max-width: 768px) {
    .register-section .register-card {
        margin: 1rem;
        padding: 2rem 1.5rem;
    }

    .register-section .register-header h2 {
        font-size: 1.75rem;
    }

    .register-section .register-icon {
        width: 70px;
        height: 70px;
    }

    .register-section .register-icon i {
        font-size: 2rem;
    }
}
