/* Official Authority Login Styles */

#pms-authority-btn-wrap {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
}

.pms-auth-float-btn {
    background: linear-gradient(135deg, var(--pms-primary) 0%, #b71c1c 100%);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(211, 47, 47, 0.3);
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.pms-auth-float-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(211, 47, 47, 0.4);
    background: #000;
}

.pms-auth-float-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.pms-auth-float-btn.dashboard-btn {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    box-shadow: 0 10px 20px rgba(46, 125, 50, 0.3);
}

/* Modal Styling */
#pms-auth-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

#pms-auth-modal.active {
    display: flex;
}

.pms-modal-content {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    animation: modalSlideUp 0.4s ease-out;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255,255,255,0.1);
}

@keyframes modalSlideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.pms-modal-header {
    background: #f8fafc;
    padding: 20px 25px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pms-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #1e293b;
    font-weight: 700;
}

.pms-close-modal {
    color: #94a3b8;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.pms-close-modal:hover { color: var(--pms-primary); }

.pms-modal-body {
    padding: 25px;
}

.modal-intro {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.pms-input-group {
    margin-bottom: 20px;
}

.pms-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #334155;
    font-size: 14px;
}

.pms-input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s;
    outline: none;
}

.pms-input-group input:focus {
    border-color: var(--pms-primary);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.pms-btn-submit-auth {
    width: 100%;
    background: var(--pms-primary);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
}

.pms-btn-submit-auth:hover { background: #b71c1c; }

#pms-auth-msg {
    margin: 15px 0;
    font-size: 14px;
    text-align: center;
    min-height: 20px;
}

.pms-auth-error { color: #ef4444; }
.pms-auth-success { color: #10b981; font-weight: 600; }

/* Responsive */
@media (max-width: 480px) {
    #pms-authority-btn-wrap { bottom: 15px; right: 15px; }
    .btn-text { display: none; }
    .pms-auth-float-btn { padding: 15px; border-radius: 50%; }
    .pms-modal-content { margin: 15px; }
}
