/**
 * FF Custom Login Styles
 */

.ff-custom-login-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.ff-login-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: left;
    /*gap: 30px;*/
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    flex-wrap: nowrap;
}

.ff-login-left {
    flex-shrink: 0;
    /*width: 200px;*/
    display: flex !important;
    flex-direction: column;
    align-items: center;
   /* gap: 20px;*/
    margin: auto;
    border: 0px solid red !important;
}


.ff-login-logo {
    text-align: center;
}

.ff-login-logo img {
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    /* max-height is set inline via template based on settings */
}

.ff-login-logo a {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.2s;
}

.ff-login-logo a:hover {
    opacity: 0.8;
}

.ff-login-container {
    width: 100%;
    max-width: 400px;
    flex-shrink: 0;
}

.ff-login-box {
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ff-login-title {
    margin: 0 0 30px 0;
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    color: #23282d;
}

.ff-login-splash {
    width: 100%;
    text-align: center;
    font-size: 26px;
    line-height: 1.6;
    padding: 0;
}

.ff-login-splash p {
    margin: 0 0 10px 0;
}

.ff-login-splash p:last-child {
    margin-bottom: 0;
}

.ff-login-error {
    background: #fff2f2;
    border-left: 4px solid #dc3232;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.ff-login-error p {
    margin: 0;
    color: #dc3232;
    font-size: 14px;
}

.ff-login-field {
    margin-bottom: 20px;
}

.ff-login-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #23282d;
    font-size: 14px;
}

.ff-login-field .input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.ff-login-field .input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.ff-login-remember {
    margin-bottom: 20px;
}

.ff-login-remember label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #23282d;
    cursor: pointer;
}

.ff-login-remember input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.ff-turnstile-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.ff-login-submit {
    margin-bottom: 20px;
}

.ff-login-submit .button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 500;
    background: #2271b1;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.ff-login-submit .button:hover {
    background: #135e96;
}

.ff-login-submit .button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.3);
}

.ff-login-links {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.ff-login-links a {
    color: #2271b1;
    text-decoration: none;
    font-size: 14px;
}

.ff-login-links a:hover {
    text-decoration: underline;
}

/* Social Login Buttons - Ensure horizontal layout */
.ff-login-box .brixzly-social-login-container {
    margin: 20px 0 !important;
}

.ff-login-box .brixzly-social-login-buttons {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    width: 75% !important;
}

.ff-login-box .brixzly-social-login-btn {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
}

.ff-login-box .brixzly-social-login-btn-icon-only {
    flex: 0 0 auto !important;
    min-width: 48px !important;
    width: 48px !important;
    height: 48px !important;
}

.ff-login-box .brixzly-social-login-divider span {
    background: #ffffff !important;
}

/* Base social login button styles - provider-specific colors come from Brixzly Social Login CSS */
.ff-login-box .brixzly-social-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: white;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    width: 48px;
    height: 48px;
    min-width: 48px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 992px) {
    .ff-login-wrapper {
        flex-wrap: wrap;
    }
    
    .ff-login-left {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .ff-login-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    .ff-login-left {
        width: 100%;
        max-width: 200px;
        order: 1;
    }
    
    .ff-login-container {
        order: 2;
    }
}

@media (max-width: 480px) {
    .ff-login-box {
        padding: 30px 20px;
    }
    
    .ff-login-title {
        font-size: 24px;
    }
    
    /* Logo size is controlled via settings, but can be overridden for mobile if needed */
    .ff-login-logo img {
        /* max-height is set inline via template based on settings */
    }
}

