/* Site Access Control — Front-end form styles */

.sac-wrapper {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    font-family: inherit;
}

.sac-title {
    margin-bottom: 6px;
    font-size: 1.6rem;
    font-weight: 700;
    text-align: left;
    color: #ffffff;
}

.sac-subtitle {
    margin-bottom: 24px;
    text-align: left;
    color: #ffffff;
}

/* Message box */
.sac-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid transparent;
}

.sac-msg-error {
    background-color: rgba(192, 57, 43, 0.15);
    color: #ff6b6b;
    border-color: rgba(192, 57, 43, 0.4);
}

.sac-msg-success {
    background-color: rgba(30, 132, 73, 0.15);
    color: #a9dfbf;
    border-color: rgba(30, 132, 73, 0.4);
}

/* Input */
.sac-field {
    margin-bottom: 14px;
}

.sac-field input[type="password"] {
    width: 100%;
    padding: 13px 16px;
    font-size: 15px;
    border: 2px solid rgba(180, 180, 180, 0.6);
    border-radius: 7px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    letter-spacing: 0.05em;
}

.sac-field input[type="password"]::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.sac-field input[type="password"]:focus {
    border-color: #DC538D;
    box-shadow: 0 0 0 3px rgba(220, 83, 141, 0.2);
}

/* Submit button */
#sac-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 24px;
    font-size: 15px;
    font-weight: 600;
    background: #DC538D;
    color: #ffffff;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    letter-spacing: 0.02em;
}

#sac-btn:hover:not(:disabled) {
    background: #c4457a;
}

#sac-btn:active:not(:disabled) {
    transform: scale(0.98);
}

#sac-btn:disabled {
    background: rgba(220, 83, 141, 0.5);
    cursor: not-allowed;
}

/* Spinner */
.sac-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: sac-spin 0.7s linear infinite;
}

@keyframes sac-spin {
    to { transform: rotate(360deg); }
}

/* Utility */
.sac-hidden {
    display: none !important;
}
