/* --- Variables & Reset --- */
:root {
    --primary-blue: #0f2b46;
    --accent-blue: #2c5282;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.4);
    --input-bg: rgba(255, 255, 255, 0.9);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* --- Background & Layout --- */
body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('https://images.unsplash.com/photo-1507842217121-9e96c885ee3f?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    position: relative;
    overflow: hidden;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(3px);
    z-index: 0;
}

.login-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px;
}

/* --- The Glass Card --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 100%;
    max-width: 420px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 40px 35px;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

/* --- Logo Section --- */
.logo-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
    color: var(--primary-blue);
}

/* Custom Image Logo Styling */
.bells-logo {
    width: 80px; /* Adjust this to make the logo larger or smaller */
    height: auto;
    margin-bottom: 10px;
    display: block;
}

.logo-text h1 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

/* --- Tabs --- */
.tabs-container {
    display: flex;
    position: relative;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(0,0,0,0.05);
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 12px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2;
}

.tab-btn.active {
    color: var(--primary-blue);
    font-weight: 600;
}

.tab-slider {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50%;
    height: 3px;
    background-color: var(--primary-blue);
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 3;
}

/* --- Forms & Inputs --- */
.auth-form {
    display: none;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.auth-form.active-form {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.row-group {
    display: flex;
    gap: 10px;
}

.row-group .input-group {
    flex: 1;
}

.input-group {
    position: relative;
    width: 100%;
}

.input-group input, 
.input-group select {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 10px;
    background: var(--input-bg);
    font-size: 15px;
    color: var(--text-dark);
    outline: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    appearance: none;
}

/* Custom Dropdown Arrow */
.role-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 10px auto;
}

.input-group input:focus, 
.input-group select:focus {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    cursor: pointer;
    font-size: 14px;
}

/* Links & Buttons */
.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.forgot-password {
    font-size: 13px;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background-color: var(--primary-blue);
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(15, 43, 70, 0.2);
}

.submit-btn:hover {
    background-color: var(--accent-blue);
    transform: translateY(-2px);
}

.register-btn {
    margin-top: 10px;
}

/* --- Footer --- */
.security-footer {
    margin-top: 35px;
    color: var(--text-light);
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.security-footer i {
    color: var(--primary-blue);
    font-size: 14px;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive Design --- */
@media (max-width: 480px) {
    .glass-card {
        padding: 30px 20px;
        max-width: 100%;
    }
    
    .logo-text h1 {
        font-size: 20px;
    }
    
    .row-group {
        flex-direction: column;
    }
}
/* --- Add this to the bottom of registration.css --- */

/* Shake Animation for Error */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.4s ease-in-out;
}

/* Error Border Style */
.input-group input:invalid {
    /* Optional: style invalid inputs specifically if needed */
    border: 2px solid #e74c3c;
}