/* ==========================================================================
   Authentication & Profile Styles - Modern Clash of Clans Gaming Theme
   CocBase.Net
   ========================================================================== */

/* Main Auth Layout Wrapper */
.coc-auth-wrapper {
    padding: 2.5rem 0 3.5rem;
    position: relative;
}

/* Auth Card */
.coc-auth-card {
    background: var(--card-bg, #161c28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    padding: 2.25rem;
    position: relative;
    overflow: hidden;
}

/* Card Header Area */
.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 13px;
    background: rgba(78, 137, 232, 0.12);
    border: 1px solid rgba(78, 137, 232, 0.25);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #93c5fd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.auth-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.95rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin: 0 0 0.4rem 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.auth-card-subtitle {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.5;
    margin: 0 0 1.5rem 0;
}

/* Google Auth Button */
.btn-google-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.94rem;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-google-auth img {
    width: 20px;
    height: 20px;
}

.btn-google-auth:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Auth Divider */
.auth-deck-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.auth-deck-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.03) 100%);
}

.auth-deck-divider span {
    position: relative;
    display: inline-block;
    padding: 0 14px;
    background: #161c28;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Form Elements */
.auth-form-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.83rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 0.45rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.auth-form-label .text-danger {
    color: #f87171 !important;
}

.auth-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 16px;
    color: #60a5fa;
    font-size: 1.05rem;
    pointer-events: none;
    z-index: 2;
}

.auth-input {
    width: 100%;
    height: 48px;
    padding: 10px 42px 10px 46px;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.auth-input:focus {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: #4e89e8 !important;
    box-shadow: 0 0 0 3px rgba(78, 137, 232, 0.25) !important;
    outline: none;
}

.btn-toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    z-index: 2;
}

.btn-toggle-password:hover {
    color: #93c5fd;
}

.auth-helper-text {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.35rem;
}

/* Checkbox & Options */
.auth-check-label {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
}

.auth-link {
    color: #60a5fa;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.auth-link:hover {
    color: #93c5fd;
    text-decoration: underline;
}

/* Submit Button */
.btn-auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #4e89e8 0%, #2563eb 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.98rem;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.btn-auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(37, 99, 235, 0.5);
    filter: brightness(1.08);
    color: #ffffff;
}

.btn-auth-submit:active {
    transform: translateY(0);
}

/* Card Footer */
.auth-card-footer {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
}

.auth-card-footer a {
    color: #60a5fa;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-card-footer a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

/* Benefits & Perks Column (Register) */
.auth-perks-box {
    padding: 1.5rem 2rem 1.5rem 0;
}

.auth-perks-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.15rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem 0;
}

.auth-perks-subtitle {
    font-size: 0.96rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.55;
    margin: 0 0 2rem 0;
}

.auth-perk-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 1.6rem;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.25s ease;
}

.auth-perk-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(78, 137, 232, 0.2);
    transform: translateX(4px);
}

.perk-icon-wrap {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.perk-icon-green {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #4ade80;
}

.perk-icon-blue {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #60a5fa;
}

.perk-icon-yellow {
    background: rgba(234, 179, 8, 0.12);
    border: 1px solid rgba(234, 179, 8, 0.25);
    color: #facc15;
}

.perk-icon-cyan {
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.25);
    color: #38bdf8;
}

.perk-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 3px 0;
    font-family: 'Outfit', sans-serif;
}

.perk-desc {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.45;
    margin: 0;
}

/* Profile Completion Styles (Preserved) */
.completion-card {
    background: var(--card-bg, #161c28);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.avatar-upload {
    position: relative;
    max-width: 120px;
    margin: 0 auto;
}

.avatar-edit {
    position: absolute;
    right: 0;
    z-index: 10;
    bottom: 5px;
}

.avatar-edit input {
    display: none;
}

.avatar-edit label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-bottom: 0;
    border-radius: 100%;
    background: var(--primary-color, #4e89e8);
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.avatar-preview {
    width: 120px;
    height: 120px;
    border-radius: 100%;
    padding: 5px;
    border: 4px solid var(--border-color, rgba(255, 255, 255, 0.1));
    overflow: hidden;
    background: var(--card-bg, #161c28);
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 100%;
}

/* Responsive */
@media (max-width: 767px) {
    .coc-auth-card {
        padding: 1.5rem 1.25rem;
        border-radius: 16px;
    }

    .auth-card-title {
        font-size: 1.65rem;
    }

    .auth-perks-box {
        padding: 0 0 1.5rem 0;
    }

    .auth-perks-title {
        font-size: 1.75rem;
    }
}
