@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

body.auth-body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background-image: linear-gradient(135deg, rgba(8, 15, 30, 0.85), rgba(3, 8, 20, 0.92)), url('../images/auth-bg.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
    background: transparent !important;
}

.auth-content {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.auth-card {
    background: rgba(15, 23, 42, 0.78) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 24px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 35px rgba(14, 165, 233, 0.12) !important;
    overflow: hidden;
    padding: 2.5rem 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-card:hover {
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7), 0 0 45px rgba(14, 165, 233, 0.18) !important;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header img {
    height: 80px;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.4));
    transition: transform 0.3s ease;
}

.auth-header img:hover {
    transform: scale(1.03);
}

.auth-title {
    font-size: 1.65rem;
    font-weight: 700;
    margin-top: 1rem;
    margin-bottom: 0.3rem;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    color: #94a3b8;
    font-size: 0.92rem;
    font-weight: 400;
}

.auth-form-group {
    margin-bottom: 1.25rem;
    position: relative;
}

.auth-form-label {
    display: block;
    color: #cbd5e1;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.auth-input, 
.auth-select {
    width: 100%;
    background-color: rgba(30, 41, 59, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #f8fafc !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.auth-input::placeholder {
    color: #64748b !important;
    font-weight: 400;
}

.auth-input:focus, 
.auth-select:focus {
    background-color: rgba(30, 41, 59, 0.95) !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    outline: none !important;
    color: #ffffff !important;
}

.auth-select option {
    background-color: #0f172a !important;
    color: #f8fafc !important;
    padding: 10px;
}

/* Input with Password Toggle */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
    z-index: 5;
}

.password-toggle-btn:hover {
    color: #38bdf8;
    transform: scale(1.1);
}

/* Button Styling */
.btn-auth-submit {
    width: 100%;
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    padding: 13px 24px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4) !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-auth-submit:hover {
    background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.6) !important;
}

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

.btn-auth-home {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #e2e8f0 !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    padding: 12px 20px !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-auth-home:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-1px);
}

/* Footer / Switch Link */
.auth-footer {
    text-align: center;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 0.9rem;
}

.auth-footer a {
    color: #38bdf8;
    font-weight: 600;
    text-decoration: none;
    margin-left: 6px;
    transition: color 0.2s ease;
}

.auth-footer a:hover {
    color: #7dd3fc;
    text-decoration: underline;
}

.badge-auth-link {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(37, 99, 235, 0.3));
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8 !important;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.25s ease;
    display: inline-block;
}

.badge-auth-link:hover {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.35), rgba(37, 99, 235, 0.5));
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
    transform: translateY(-1px);
}

/* Verification indicator */
#s_id, #p_id {
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 6px;
}

/* Modal styling */
.modal-content.bg-auth-modal {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
    border-radius: 24px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(56, 189, 248, 0.2) !important;
    color: #f8fafc !important;
}

.modal-body.bg-auth-modal-body {
    background: transparent !important;
    padding: 2rem !important;
}
