/* ========================================
   eSpire Gaming Platform - Auth Pages CSS
   Login & Registration Styling
   ======================================== */

/* Page Container */
.page-box {
    max-width: 500px;
    margin: 80px auto;
    padding: 40px;
    background: rgba(26, 26, 46, 0.8);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(108, 92, 231, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.page-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6C5CE7, #FD79A8, #00D2A0);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.page-box h2 {
    color: white;
    font-weight: 800;
    background: linear-gradient(135deg, #6C5CE7, #FD79A8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    font-size: 2rem;
}

/* Form Elements */
.form-label {
    color: #B8B8D0;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.form-control,
.form-select {
    background: rgba(15, 15, 30, 0.6) !important;
    border: 2px solid rgba(108, 92, 231, 0.3) !important;
    border-radius: 12px !important;
    color: white !important;
    padding: 12px 16px !important;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    background: rgba(15, 15, 30, 0.8) !important;
    border-color: #6C5CE7 !important;
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.3) !important;
    color: white !important;
}

.form-control::placeholder {
    color: rgba(184, 184, 208, 0.5);
}

.form-select option {
    background: #1A1A2E;
    color: white;
}

.form-control[type="file"] {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
    border: 2px solid rgba(168, 85, 247, 0.3) !important;
    border-radius: 8px !important;
    color: #e0e0e0 !important;
    padding: 12px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.form-control[type="file"]:hover {
    border-color: rgba(168, 85, 247, 0.6) !important;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3) !important;
}

/* For Chrome, Safari, Edge */
.form-control[type="file"]::-webkit-file-upload-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    border-radius: 6px !important;
    color: white !important;
    padding: 8px 16px !important;
    margin-right: 12px !important;
    cursor: pointer !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.form-control[type="file"]::-webkit-file-upload-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4) !important;
}

/* For Firefox */
.form-control[type="file"]::file-selector-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    border-radius: 6px !important;
    color: white !important;
    padding: 8px 16px !important;
    margin-right: 12px !important;
    cursor: pointer !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.form-control[type="file"]::file-selector-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4) !important;
}
/* Alert Messages */
.alert-es-error {
    background: rgba(255, 107, 107, 0.1);
    border: 2px solid #FF6B6B;
    border-radius: 12px;
    padding: 15px;
    color: #FF6B6B;
    font-weight: 600;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.alert-es-success {
    background: rgba(0, 210, 160, 0.1);
    border: 2px solid #00D2A0;
    border-radius: 12px;
    padding: 15px;
    color: #00D2A0;
    font-weight: 600;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.btn-es {
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-es-primary {
    background: linear-gradient(135deg, #6C5CE7, #00D2A0);
    color: white;
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.4);
}

.btn-es-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(108, 92, 231, 0.6);
    color: white;
}

.btn-es-primary:active {
    transform: translateY(-1px);
}

.w-100 {
    width: 100%;
}

/* Links */
.page-box a {
    color: #6C5CE7;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-box a:hover {
    color: #FD79A8;
    text-decoration: underline;
}

.page-box p {
    color: #B8B8D0;
    margin: 0;
}

/* Spacing utilities */
.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.text-center {
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .page-box {
        margin: 40px 20px;
        padding: 30px 20px;
    }

    .page-box h2 {
        font-size: 1.5rem;
    }
}

/* ========================================
   Profile Page - Avatar Styles
   ======================================== */

.avatar-box {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 50%;
    border: 3px solid rgba(108, 92, 231, 0.5);
    box-shadow: 0 0 12px rgba(108, 92, 231, 0.4);
}

.avatar-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 50%;
}

/* Additional profile page styles */
.page-box h5 {
    color: white;
    font-weight: 700;
}

.page-box hr {
    border: none;
    height: 1px;
    background: rgba(108, 92, 231, 0.3);
    margin: 30px 0;
}

.btn-outline-danger {
    background: transparent;
    border: 2px solid #FF6B6B;
    color: #FF6B6B;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline-danger:hover {
    background: rgba(255, 107, 107, 0.1);
    transform: translateY(-2px);
}

.btn-sm {
    font-size: 0.9rem;
    padding: 6px 16px;
}

.my-4 {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}