/* ========================================
   MODERN GLASSMORPHISM LOGIN STYLES
   Blue/Purple Gradient Theme
   ======================================== */

/* ---------- Base Styles ---------- */
body {
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
}

/* ---------- Animated Gradient Background ---------- */
.bg-gradient-primary {
    background: linear-gradient(-45deg, #667eea, #764ba2, #6B8DD6, #8E37D7);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ---------- Floating Particles ---------- */
.login-container {
    position: relative;
}

    .login-container::before,
    .login-container::after {
        content: '';
        position: absolute;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        animation: float 6s ease-in-out infinite;
    }

    .login-container::before {
        width: 300px;
        height: 300px;
        top: -100px;
        left: -100px;
    }

    .login-container::after {
        width: 200px;
        height: 200px;
        bottom: -50px;
        right: -50px;
        animation-delay: 3s;
    }

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

/* ---------- Glassmorphism Card ---------- */
.glass-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

    .glass-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 35px 60px rgba(0, 0, 0, 0.3);
    }

/* ---------- Inner Content Card ---------- */
.content-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* ---------- Image Card ---------- */
.image-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

    .image-card img {
        transition: transform 0.5s ease;
    }

    .image-card:hover img {
        transform: scale(1.05);
    }

.image-overlay {
    background: linear-gradient( 135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.7) 100% );
}

/* ---------- Form Styles ---------- */
.form-floating {
    position: relative;
}

.form-control-modern {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 15px;
    transition: all 0.3s ease;
}

    .form-control-modern:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
        background: #fff;
        outline: none;
    }

    .form-control-modern::placeholder {
        color: #9ca3af;
    }

.form-label-modern {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    margin-bottom: 8px;
}

/* ---------- Input with Icon ---------- */
.input-icon-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    transition: color 0.3s ease;
}

.input-icon-wrapper .form-control-modern {
    padding-left: 44px;
}

.input-icon-wrapper:focus-within .input-icon {
    color: #667eea;
}

/* ---------- Primary Button ---------- */
.btn-primary-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .btn-primary-modern::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient( 90deg, transparent, rgba(255, 255, 255, 0.2), transparent );
        transition: left 0.5s ease;
    }

    .btn-primary-modern:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    }

        .btn-primary-modern:hover::before {
            left: 100%;
        }

    .btn-primary-modern:active {
        transform: translateY(0);
    }

/* ---------- Links ---------- */
.link-modern {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

    .link-modern::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0;
        height: 2px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        transition: width 0.3s ease;
    }

    .link-modern:hover {
        color: #764ba2;
    }

        .link-modern:hover::after {
            width: 100%;
        }

/* ---------- Logo Animation ---------- */
.logo-container {
    animation: fadeInDown 0.8s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Alert Styles ---------- */
.alert-modern {
    border-radius: 12px;
    border: none;
    padding: 12px 16px;
    font-size: 14px;
}

.alert-danger-modern {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border-left: 4px solid #dc2626;
}

.alert-success-modern {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border-left: 4px solid #16a34a;
}

/* ---------- Validation Error Styles ---------- */
.field-validation-error {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 10px 14px;
    background: #fef2f2;
    border-radius: 10px;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    animation: slideIn 0.3s ease;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.08);
}

    .field-validation-error::before {
        content: '\f06a';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        color: #ef4444;
        font-size: 14px;
        flex-shrink: 0;
    }

/* Valid state - hide completely */
.field-validation-valid {
    display: none !important;
}

/* Validation message container (for JS validation) */
.validation-message {
    display: none;
}

    .validation-message.field-validation-error {
        display: inline-flex;
    }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Input error state */
.form-control-modern.input-validation-error {
    border-color: #f87171 !important;
    background-color: #fef2f2 !important;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2) !important;
}

/* Shake animation for errors */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.input-shake {
    animation: shake 0.4s ease;
}

/* Tooltip style validation (alternative) */
.validation-tooltip {
    position: relative;
    display: inline-block;
    margin-top: 4px;
}

    .validation-tooltip .tooltip-text {
        background: #ef4444;
        color: white;
        padding: 6px 10px;
        border-radius: 6px;
        font-size: 11px;
        font-weight: 500;
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        animation: fadeIn 0.3s ease;
    }

        .validation-tooltip .tooltip-text::before {
            content: '';
            position: absolute;
            top: -4px;
            left: 12px;
            width: 8px;
            height: 8px;
            background: #ef4444;
            transform: rotate(45deg);
        }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ---------- Divider ---------- */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
}

    .divider::before,
    .divider::after {
        content: '';
        flex: 1;
        border-bottom: 1px solid #e5e7eb;
    }

    .divider::before {
        margin-right: 12px;
    }

    .divider::after {
        margin-left: 12px;
    }

/* ---------- Responsive Design ---------- */
@media (max-width: 991px) {
    .glass-card {
        margin: 20px;
        padding: 1rem !important;
    }

    .image-section {
        display: none;
    }

    .content-card {
        padding: 1.5rem !important;
        box-shadow: none;
    }
}

@media (max-width: 576px) {
    /* Simplified mobile design - compact to fit screen */
    .bg-gradient-primary {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        animation: none;
    }

    .glass-card {
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        box-shadow: none;
        margin: 0;
        padding: 0.25rem !important;
        width: 100%;
        max-width: 100%;
    }

        .glass-card:hover {
            transform: none;
            box-shadow: none;
        }

    .content-card {
        padding: 1rem !important;
        border-radius: 12px;
        margin: 0 0.25rem;
    }

    .logo-container {
        margin-bottom: 0.35rem !important;
    }

        .logo-container img {
            width: 40px !important;
            height: 40px !important;
            object-fit: contain;
            margin-bottom: 0.15rem !important;
        }

        .logo-container h4 {
            font-size: 0.9rem !important;
            margin-bottom: 0 !important;
        }

        .logo-container p {
            font-size: 0.65rem !important;
            margin-bottom: 0 !important;
            display: none; /* Hide subtitle on mobile */
        }

    .form-label-modern {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .form-control-modern {
        padding: 8px 10px;
        padding-left: 34px;
        font-size: 13px;
        border-radius: 8px;
    }

    .input-icon {
        left: 10px;
        font-size: 12px;
    }

    .input-icon-wrapper .form-control-modern {
        padding-left: 34px;
    }

    .btn-primary-modern {
        padding: 8px 16px;
        font-size: 13px;
        border-radius: 8px;
    }

    .mb-3 {
        margin-bottom: 0.5rem !important;
    }

    .mb-4 {
        margin-bottom: 0.5rem !important;
    }

    .link-modern {
        font-size: 12px;
    }

    .alert-modern {
        padding: 8px 10px;
        font-size: 12px;
    }

    /* Hide floating particles on mobile */
    .login-container::before,
    .login-container::after {
        display: none;
    }

    .password-toggle {
        right: 10px;
        padding: 2px;
    }

        .password-toggle i {
            font-size: 12px;
        }

    /* Compact captcha on mobile */
    .captcha-container,
    .g-recaptcha,
    [class*="captcha"] {
        transform: scale(0.85);
        transform-origin: left top;
        margin-bottom: -10px;
    }

    /* Reduce validation message spacing */
    .text-danger {
        font-size: 0.7rem !important;
        margin-top: 2px;
    }

    /* Compact alerts */
    .alert-modern {
        margin-bottom: 0.5rem !important;
    }
}

/* Extra small devices */
@media (max-width: 375px) {
    .content-card {
        padding: 0.6rem !important;
    }

    .logo-container img {
        width: 32px !important;
        height: 32px !important;
    }

    .logo-container h4 {
        font-size: 0.8rem !important;
    }

    .form-control-modern {
        padding: 6px 8px;
        padding-left: 30px;
        font-size: 12px;
    }

    .btn-primary-modern {
        padding: 6px 12px;
        font-size: 12px;
    }

    .form-label-modern {
        font-size: 11px;
    }

    .input-icon {
        font-size: 11px;
        left: 8px;
    }
}

/* ---------- Short viewport height fix ---------- */
@media (max-height: 700px) {
    .glass-card {
        padding: 1rem !important;
    }

    .content-card {
        padding: 1rem !important;
    }

    .logo-container {
        margin-bottom: 0.5rem !important;
    }

        .logo-container img {
            width: 50px !important;
            height: 50px !important;
            margin-bottom: 0.25rem !important;
        }

        .logo-container h4 {
            font-size: 1rem !important;
            margin-bottom: 0 !important;
        }

        .logo-container p {
            display: none !important;
        }

    .form-label-modern {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .form-control-modern {
        padding: 8px 12px;
        padding-left: 36px;
        font-size: 13px;
    }

    .btn-primary-modern {
        padding: 8px 16px;
        font-size: 13px;
    }

    .mb-2, .mb-3, .mb-4 {
        margin-bottom: 0.4rem !important;
    }

    .mb-md-3, .mb-md-4 {
        margin-bottom: 0.4rem !important;
    }
}

@media (max-height: 600px) {
    .glass-card {
        padding: 0.5rem !important;
    }

    .content-card {
        padding: 0.75rem !important;
    }

    .logo-container img {
        width: 40px !important;
        height: 40px !important;
    }

    .logo-container h4 {
        font-size: 0.9rem !important;
    }

    .form-control-modern {
        padding: 6px 10px;
        padding-left: 34px;
        font-size: 12px;
    }

    .btn-primary-modern {
        padding: 6px 14px;
        font-size: 12px;
    }

    .form-label-modern {
        font-size: 11px;
        margin-bottom: 2px;
    }

    .mb-2, .mb-3, .mb-4 {
        margin-bottom: 0.3rem !important;
    }

    /* Scale down captcha */
    .captcha-container,
    .g-recaptcha,
    [class*="captcha"] {
        transform: scale(0.8);
        transform-origin: left top;
        margin-bottom: -15px;
    }
}

/* ---------- Password Toggle ---------- */
.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    transition: color 0.3s ease;
}

    .password-toggle:hover {
        color: #667eea;
    }

/* ---------- Checkbox Styles ---------- */
.form-check-modern .form-check-input {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 4px;
    cursor: pointer;
}

    .form-check-modern .form-check-input:checked {
        background-color: #667eea;
        border-color: #667eea;
    }

.form-check-modern .form-check-label {
    font-size: 14px;
    color: #6b7280;
    cursor: pointer;
}

/* ---------- Loading State ---------- */
.btn-loading {
    position: relative;
    color: transparent !important;
}

    .btn-loading::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 20px;
        top: 50%;
        left: 50%;
        margin: -10px 0 0 -10px;
        border: 3px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        border-top-color: #fff;
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---------- Object Fit ---------- */
.object-fit-cover {
    object-fit: cover;
}

/* ---------- Card Defaults ---------- */
.card {
    border-radius: 1rem;
}

    .card.d-flex.align-items-center {
        justify-content: center;
    }

/* Legacy support for existing pages */
@media (min-width: 992px) {
    .me-lg-n4 {
        margin-right: -2rem !important;
    }

    .ms-lg-n4 {
        margin-left: -2rem !important;
    }
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

    .btn-primary:hover {
        background: linear-gradient(135deg, #5a72e0 0%, #6a4199 100%);
        box-shadow: 0 6px 20px rgba(118, 75, 162, 0.3);
    }


.left-text-input {
    text-align: left !important;
    padding-left: 12px !important;
}

.church-input-group {
    border: 1px solid #ced4da;
    border-radius: 0.5rem;
    align-items: center;
    overflow: hidden;
    background: #fff;
}

    /* Remove individual input borders */
    .church-input-group .no-border {
        border: none !important;
        box-shadow: none !important;
    }

    /* Focus effect for BOTH inputs */
    .church-input-group:focus-within {
        border-color: #0d6efd;
        box-shadow: 0 0 0 .15rem rgba(13,110,253,.25);
    }

    /* Prevent blue popup on inputs */
    .church-input-group input:focus {
        outline: none;
        box-shadow: none;
    }

.editable-display {
    width: 70%; /* adjust as needed */
    cursor: default;
    white-space: nowrap; /* keep everything on one line */
    overflow: hidden; /* hide extra text */
    text-overflow: ellipsis; /* show ... at the end */
    min-height: 38px; /* match input height */
    align-items: center;
    padding-left: 6px; /* optional, align like input */
}





 
