/* File: /assets/css/sso-style.css */

.bf-sso-form-container {
    max-width: 400px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 12px;
}

.bf-sso-form-container h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #000;
    font-style: italic;
}

.bf-sso-form-container form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

.bf-sso-form-container form button {
    font-family: var(--bf-font-family);
    font-size: var(--bf-primary-btn-font-size);
    font-weight: var(--bf-primary-btn-font-weight);
    font-style: var(--bf-primary-btn-font-style);
    background-color: var(--bf-primary-btn-bg-color);
    color: var(--bf-primary-btn-text-color);
    border: var(--bf-primary-btn-border-width) var(--bf-primary-btn-border-style)
    var(--bf-primary-btn-border-color);
    padding: var(--bf-primary-btn-padding);
    margin-bottom: 10px;
    cursor: pointer;
}

.bf-sso-form-container form button:hover {
    background: var(--bf-primary-btn-hover-bg-color) !important;
    border-color: var(--bf-primary-btn-border-width) var(--bf-primary-btn-border-style) var(--bf-primary-btn-hover-border-color) !important;
    color: var(--bf-primary-btn-hover-text-color);
}

.bf-sso-form-container p {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

body .bf-sso-form-container a {
    color: var(--bf-link-color);
    font-family: var(--bf-font-family);
    font-size: var(--bf-link-font-size);
    font-weight: var(--bf-link-font-weight);
    font-style: var(--bf-link-font-style);
    text-decoration: var(--bf-link-text-decoration);
}

body .bf-sso-form-container a:hover {
    color: var(--bf-link-hover-color);
    text-decoration: var(--bf-link-hover-text-decoration);
}

input[type="text"]:focus,
input[type="search"]:focus,
input[type="radio"]:focus,
input[type="tel"]:focus,
input[type="time"]:focus,
input[type="url"]:focus,
input[type="week"]:focus,
input[type="password"]:focus,
input[type="checkbox"]:focus,
input[type="color"]:focus,
input[type="date"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="email"]:focus,
input[type="month"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    border-color: #c4b0ef !important;
    box-shadow: 0 0 0 0.2rem #7d4aea3b;
    outline: none;
}

.bf-sso-form-container .bf-sso-response {
    margin-top: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
}

/* Base Notice Styling */
.bf-sso-form-container .notice {
    padding: 12px;
    margin-left: 0;
    margin-bottom: 20px;
    background: #fff;
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, .1);
    word-wrap: break-word;
}
.bf-sso-form-container .notice p {
    margin: 0;
    text-align: left;
}
.bf-sso-form-container .message, .bf-sso-form-container .notice {
    border-left: 4px solid var(--bf-warning-color);
}

.bf-sso-form-container .notice-success {
    border-left-color:  var(--bf-success-color);
    background-color: #fff;
    padding-left: 5px;
}

/* Error Notice */
.notice-error {
    border-left: 4px solid var(--bf-danger-color);
    background-color: #fff;
    padding-left: 5px;
}

.bf-spinner {
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 2px solid #fff;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

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

button:disabled {
    cursor: not-allowed;
}

.bf-field-wrapper{
    margin-bottom: 15px;
}

.bf-password-wrapper {
    position: relative;
}

.bf-password-wrapper input {
    width: 100%;
    padding-right: 40px;
}

.bf-toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
    color: #888;
}

.bf-toggle-password.dashicons-hidden {
    color: #000;
}

.bf-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
}

.bf-modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 300px;
    text-align: center;
}

.bf-modal-actions {
    margin-top: 1rem;
}

.bf-logout-message {
    color: var(--bf-primary-color);
}
