/* ===== Auth Modal (Layer Popup Version) ===== */

/* Layer popup custom styling */
.auth-layer-popup {
    border-radius: 18px !important;
    overflow: hidden;
}

.auth-layer-popup .layui-layer-content {
    padding: 0 !important;
}

.auth-layer-popup .layui-layer-close {
    color: #9ca3af !important;
    font-size: 28px !important;
    width: 32px !important;
    height: 32px !important;
    transition: all 0.2s ease;
}

.auth-layer-popup .layui-layer-close:hover {
    color: #374151 !important;
    border-radius: 50%;
}

/* Modal Content Container */
.auth-modal-content {
    background: #fff;
    padding: 44px 48px 36px;
    text-align: center;
}

/* Modal Header */
.auth-modal-header {
    margin-bottom: 26px;
}

.auth-modal-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ff4c4c 0%, #ff6b6b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 8px 20px rgba(255, 76, 76, 0.3);
}

.auth-modal-header h2 {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.2;
}

.auth-modal-subtitle {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Form Styles */
.auth-form {
    margin-bottom: 20px;
}

.auth-input-wrap {
    position: relative;
    margin-bottom: 16px;
}

.auth-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1rem;
    pointer-events: none;
}

.auth-input {
    width: 100%;
    height: 50px;
    padding: 0 16px 0 46px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: #fff;
    transition: var(--transition);
    font-family: inherit;
    box-sizing: border-box;
}

.auth-input::placeholder {
    color: var(--text-light);
}

.auth-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 76, 76, 0.12);
    outline: none;
}

/* Auth Options (Remember & Forgot) */
.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.88rem;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: var(--text-secondary);
}

.auth-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary);
}

.auth-checkbox-full {
    margin-bottom: 20px;
    font-size: 0.85rem;
}

.auth-checkbox-full a {
    color: var(--primary);
    text-decoration: underline;
}

.auth-forgot-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-forgot-link:hover {
    text-decoration: underline;
}

/* Primary Button */
.auth-btn-primary {
    width: 100%;
    height: 54px;
    background: #ffabab;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 0;
}

.auth-btn-primary:hover {
    background: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 76, 76, 0.25);
}

/* Divider */
.auth-divider {
    position: relative;
    margin: 24px 0;
    text-align: center;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    position: relative;
    background: #fff;
    padding: 0 16px;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Google Button */
.auth-btn-google {
    width: 100%;
    height: 50px;
    background: #fff;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    text-decoration: none;
    margin-bottom: 20px;
}

.auth-btn-google:hover {
    background: var(--bg-light);
    color: var(--text-primary);
    border-color: #d1d5db;
}

.auth-btn-google .g-icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    background: conic-gradient(from -45deg, #4285f4, #ea4335, #fbbc05, #34a853, #4285f4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Switch Link */
.auth-switch {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-switch a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.layui-layer-setwin .layui-layer-close2{
    right: -15px!important;
    top: -15px!important;
}