/* Frontend styles */
.babzy-form-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.babzy-form-container h2 {
    margin-top: 0;
    color: #0b72b9;
    text-align: center;
}

.babzy-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.babzy-form-row {
    display: flex;
    gap: 1rem;
}

.babzy-form-group {
    flex: 1;
}

.babzy-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.babzy-form-group input,
.babzy-form-group select,
.babzy-form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 16px;
}

.babzy-form-group input:focus,
.babzy-form-group select:focus,
.babzy-form-group textarea:focus {
    outline: none;
    border-color: #0b72b9;
}

.babzy-button {
    background: #0b72b9;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.babzy-button:hover {
    background: #001a6e;
}

.babzy-notice {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #0b72b9;
    text-align: center;
}

.babzy-error {
    background: #fee;
    color: #c00;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border-left: 4px solid #c00;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    min-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.babzy-checkmark {
    color: #28a745;
    font-weight: bold;
    margin-right: 5px;
}

/* Loading Animation */
.babzy-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(11, 114, 185, 0.3);
    border-radius: 50%;
    border-top-color: #0b72b9;
    animation: spin 1s ease-in-out infinite;
    vertical-align: middle;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.babzy-login-link {
    text-align: center;
    margin-top: 1rem;
    color: #666;
}

.babzy-login-link a {
    color: #0b72b9;
    text-decoration: none;
    font-weight: 600;
}

.babzy-login-link a:hover {
    text-decoration: underline;
}

/* Shifts list */
.babzy-shifts-container {
    max-width: 1000px;
    margin: 2rem auto;
}

.babzy-shifts-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.babzy-shift-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border: 2px solid #e2e8f0;
}

.babzy-shift-card h3 {
    margin-top: 0;
    color: #333;
}

.babzy-shift-card p {
    margin: 0.5rem 0;
}

.babzy-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Responsive */
@media (max-width: 768px) {
    .babzy-form-row {
        flex-direction: column;
    }
    
    .babzy-shifts-list {
        grid-template-columns: 1fr;
    }
    
    .babzy-form-container {
        margin: 1rem;
        padding: 1rem;
    }
}

.status-past {
    background: #e9ecef !important;
    color: #6c757d !important;
}


/* ============================================
   REGISTRATION PAGE STYLES
   ============================================ */

.babzy-registration-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.babzy-registration-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 480px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

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

.babzy-registration-title {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.babzy-registration-subtitle {
    color: #7f8c8d;
    font-size: 16px;
    margin: 0;
    line-height: 1.4;
}

.babzy-registration-tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 6px;
    margin-bottom: 30px;
}

.babzy-tab-btn {
    flex: 1;
    padding: 14px;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.babzy-tab-btn.active {
    background: white;
    color: #0b72b9;
    box-shadow: 0 4px 12px rgba(11, 114, 185, 0.15);
}

.babzy-tab-btn:hover:not(.active) {
    color: #495057;
}

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

.babzy-form-group {
    position: relative;
}

.babzy-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.babzy-form-group input,
.babzy-form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 15px;
    color: #333;
    background: #fafafa;
    transition: all 0.3s ease;
    font-family: inherit;
}

.babzy-form-group input:focus,
.babzy-form-group textarea:focus {
    outline: none;
    border-color: #0b72b9;
    background: white;
    box-shadow: 0 0 0 3px rgba(11, 114, 185, 0.1);
}

.babzy-form-group input.error,
.babzy-form-group textarea.error {
    border-color: #e74c3c;
    background: #fff9f9;
}

.babzy-form-group input.error:focus,
.babzy-form-group textarea.error:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.password-input-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #95a5a6;
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    z-index: 2;
}

.password-toggle:hover {
    color: #7f8c8d;
}

.password-hint {
    display: block;
    margin-top: 6px;
    color: #95a5a6;
    font-size: 12px;
}

.babzy-register-btn {
    background: linear-gradient(135deg, #0b72b9 0%, #001a6e 100%);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    font-family: inherit;
}

.babzy-register-btn:hover {
    background: linear-gradient(135deg, #001a6e 0%, #000d3d 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(11, 114, 185, 0.3);
}

.babzy-register-btn:active {
    transform: translateY(0);
}

.babzy-login-link {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #7f8c8d;
    font-size: 15px;
}

.babzy-login-link a {
    color: #0b72b9;
    font-weight: 600;
    text-decoration: none;
    margin-left: 5px;
}

.babzy-login-link a:hover {
    text-decoration: underline;
}

.babzy-alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    animation: slideDown 0.3s ease;
}

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

.babzy-alert-error {
    background: #fee;
    color: #c0392b;
    border-left: 4px solid #c0392b;
}

.babzy-alert-success {
    background: #d4edda;
    color: #27ae60;
    border-left: 4px solid #27ae60;
}

.recaptcha-notice {
    display: block;
    margin-top: 8px;
    color: #e74c3c;
    font-size: 12px;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .babzy-registration-container {
        padding: 15px;
        background: #667eea;
    }
    
    .babzy-registration-card {
        padding: 30px 25px;
        border-radius: 16px;
    }
    
    .babzy-registration-title {
        font-size: 24px;
    }
    
    .babzy-registration-subtitle {
        font-size: 14px;
    }
    
    .babzy-tab-btn {
        padding: 12px;
        font-size: 14px;
    }
    
    .babzy-form-group input,
    .babzy-form-group textarea {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .babzy-register-btn {
        padding: 14px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .babzy-registration-card {
        padding: 25px 20px;
        border-radius: 12px;
    }
    
    .babzy-registration-title {
        font-size: 22px;
    }
    
    .babzy-registration-subtitle {
        font-size: 13px;
    }
    
    .babzy-registration-tabs {
        flex-direction: column;
        gap: 8px;
        background: transparent;
        padding: 0;
    }
    
    .babzy-tab-btn {
        width: 100%;
        padding: 12px;
        border: 2px solid #e8e8e8;
        background: white;
    }
    
    .babzy-tab-btn.active {
        border-color: #0b72b9;
    }
    
    .babzy-login-link {
        font-size: 14px;
    }
}

/* Animation for field switching */
.babzy-form-group {
    transition: opacity 0.3s ease;
}

/* Loading state */
.babzy-register-btn.loading {
    position: relative;
    color: transparent;
}

.babzy-register-btn.loading::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Login Form Styles */
.babzy-login-container {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.babzy-login-card {
    width: 100%;
}

.babzy-login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.babzy-login-header h1 {
    margin: 0 0 0.5rem 0;
    color: #0b72b9;
    font-size: 1.8rem;
}

.babzy-login-header p {
    margin: 0;
    color: #666;
}

.babzy-login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.babzy-login-btn {
    background: #0b72b9;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.babzy-login-btn:hover {
    background: #001a6e;
}

.babzy-alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    text-align: center;
}

.babzy-alert-error {
    background: #fee;
    color: #c00;
    border-left: 4px solid #c00;
}

.babzy-alert-success {
    background: #dfd;
    color: #080;
    border-left: 4px solid #080;
}

/* Success message styling */
.babzy-success {
    background: green;
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    border-radius: 5px;
    margin: 20px 0;
    font-size: 16px;
}