:root {
    --bs-primary: #a100ff;
    --bs-primary-rgb: 161, 0, 255;
}

/* Gradient Primary Button */
.btn-primary {
    background: linear-gradient(90deg, #a100ff, #ff6ec4);
    border: none;
    color: #fff !important;
    font-weight: 600;
    transition: 0.3s;
}
.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(161, 0, 255, 0.4);
}

/* Outline Primary Button */
.btn-outline-primary {
    border: 2px solid #a100ff;
    color: #a100ff !important;
    font-weight: 600;
    transition: 0.3s;
}
.btn-outline-primary:hover {
    background: linear-gradient(90deg, #a100ff, #ff6ec4);
    color: #fff !important;
    border-color: transparent;
}

/* Primary Text */
.text-primary {
    background: linear-gradient(90deg, #a100ff, #ff6ec4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Input Focus */
.form-control:focus {
    border-color: #a100ff;
    box-shadow: 0 0 0 0.2rem rgba(161, 0, 255, 0.25);
}

/* Auth page layout */
.auth-page {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 20px;
}

.auth-container {
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
}

.auth-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.auth-card-header {
    background: linear-gradient(90deg, #a100ff, #ff6ec4);
    padding: 2rem;
    text-align: center;
}

.auth-card-body {
    padding: 2rem;
}

.auth-logo {
    height: 80px;
    margin-bottom: 1rem;
}

/* Auth spinner */
.auth-spinner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    display: none;
}

/* Auth form elements */
.auth-form .form-control {
    padding: 12px 15px;
    border-radius: 8px;
}

.auth-form .input-group-text {
    border-radius: 8px 0 0 8px;
    background: #fff;
    border: 1px solid #ddd;
}

/* 🔥 NEW: Icon coloring */
.auth-form .input-group-text i {
    background: linear-gradient(90deg, #a100ff, #ff6ec4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1rem;
    transition: color 0.3s;
}

.auth-form .form-control:focus + .input-group-text i {
    -webkit-text-fill-color: #ff6ec4;
}

/* Password toggle icon */
.toggle-password i {
    color: #a100ff;
    transition: color 0.3s;
}
.toggle-password:hover i {
    color: #ff6ec4;
}

.auth-btn {
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
}

/* Checkbox custom style */
.auth-form .form-check-input {
    accent-color: #a100ff; /* modern browsers */
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid #a100ff;
    cursor: pointer;
    transition: all 0.3s ease;
}
.auth-form .form-check-input:checked {
    background-color: #a100ff;
    border-color: #a100ff;
    box-shadow: 0 0 6px rgba(161, 0, 255, 0.4);
}
.auth-form .form-check-label {
    margin-left: 5px;
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
}

/* Gradient link for Forgot Password */
.auth-form a {
    font-weight: 600;
    background: linear-gradient(90deg, #a100ff, #ff6ec4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    transition: opacity 0.3s;
}
.auth-form a:hover {
    opacity: 0.7;
}


/* Responsive adjustments */
@media (max-width: 576px) {
    .auth-card-header, .auth-card-body {
        padding: 1.5rem;
    }
}
