/* Member Authentication Page Styles */
.member-auth-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0;
}

.auth-container {
    width: 100%;
    max-width: 500px;
}

.auth-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header .logo-books {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.auth-header .book {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.auth-header .book-r {
    background-color: var(--danger-color);
}

.auth-header .book-d {
    background-color: var(--secondary-color);
}

.auth-header .book-m {
    background-color: var(--primary-color);
}

.auth-header h1 {
    font-size: 28px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.auth-header p {
    color: var(--text-light);
    font-size: 14px;
}

/* Tab Navigation */
.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--bg-light);
}

.auth-tab {
    flex: 1;
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-tab:hover {
    color: var(--primary-color);
}

.auth-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.auth-tab i {
    font-size: 14px;
}

/* Form Styles */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

.auth-form label i {
    margin-right: 8px;
    color: var(--primary-color);
    width: 16px;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="tel"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--bg-light);
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.auth-form input::placeholder {
    color: #999;
}

.checkbox-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
    font-size: 14px;
    margin: 0;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-group a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: normal;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-auth {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.btn-auth:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.btn-auth:active {
    transform: translateY(0);
}

.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: var(--bg-light);
}

.auth-divider span {
    background: var(--white);
    padding: 0 15px;
    color: var(--text-light);
    font-size: 14px;
    position: relative;
}

.auth-switch {
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
    margin: 0;
}

.switch-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.switch-link:hover {
    text-decoration: underline;
}

.auth-footer {
    margin-top: 30px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--bg-light);
}

.back-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.back-link:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

/* Error Message */
.error-message {
    background: #fee;
    color: var(--danger-color);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    border-left: 4px solid var(--danger-color);
}

.success-message {
    background: #efe;
    color: var(--primary-dark);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    border-left: 4px solid var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-card {
        padding: 30px 20px;
    }

    .auth-header h1 {
        font-size: 24px;
    }

    .auth-tab {
        padding: 10px 15px;
        font-size: 14px;
    }

    .auth-form input[type="text"],
    .auth-form input[type="email"],
    .auth-form input[type="tel"],
    .auth-form input[type="password"] {
        font-size: 14px;
        padding: 11px 12px;
    }

    .btn-auth {
        padding: 12px;
        font-size: 15px;
    }

    .checkbox-group {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .member-auth-page {
        padding: 15px;
    }

    .auth-card {
        padding: 25px 15px;
    }

    .auth-header .book {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .auth-header h1 {
        font-size: 22px;
    }

    .auth-tabs {
        gap: 5px;
    }

    .auth-tab {
        padding: 10px 10px;
        font-size: 13px;
    }

    .auth-tab i {
        font-size: 12px;
    }
}

