/* Login Form Container */

.sc-login-container {
    max-width: 600px;
    margin: 0 auto;
    font-family: inherit;
}

/* Form */

.sc-login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 0;
}

/* Inputs */

.sc-login-field {
    width: 100%;
    box-sizing: border-box;
    padding: 24px 20px;
    border-radius: 12px;
    border: 2px solid #FF8200;
    background: #f3f7fe;
    color: #9698a0;
    margin: 0;
    font-family: inherit;
    transition: border 0.15s, box-shadow 0.15s;
}
.sc-login-field::placeholder {
    color: #9698a0;
    opacity: 1;
}

/* Button */

.sc-login-btn {
    width: 100%;
    padding: 22px 0;
    background: #1a1a1f;
    color: #fff;
    border: none;
    border-radius: 16px;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: .03em;
    cursor: pointer;
    margin: 0;
    transition: background 0.2s;
    margin-bottom: 22px;
}
.sc-login-btn:hover {
    background: #222228;
}

/* Message */

.whmcs-login-message {
    color: #d52c25;
    font-size: 1em;
    margin-bottom: 6px;
    min-height: 18px;
    margin-top: -18px;
}

/* Links */

.sc-login-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 2px;
}
.sc-link {
    color: #2973f9;
    text-decoration: none;
    transition: color 0.16s;
}
.sc-link:hover {
    color: #ff8200;
    text-decoration: underline;
}

/* Remove extra spacing for ultra-compact layout */

.sc-login-form > *:last-child {
    margin-bottom: 0 !important;
}
.sc-login-form {
    margin-bottom: 0;
}
.whmcs-login-message .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 8px;
    border: 3px solid #eee;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: whmcs-spin 0.8s linear infinite;
}
@keyframes whmcs-spin {
    100% {
        transform: rotate(360deg);
    }
}
.whmcs-login-message .success {
    color: #5fc849;
    /* or your brand primary */
    font-weight: 500;
}
.whmcs-login-message .error {
    color: #f10b0b;
    font-weight: 500;
}

/* Responsive adjustments */

@media (max-width: 600px) {
    .sc-login-container {
        padding: 0 5vw;
    }
    .sc-login-field,
    .sc-login-btn,
    .sc-link {
        font-size: 1rem;
    }
}
@media (max-width: 400px) {
    .sc-login-container {
        padding: 0 2vw;
    }
    .sc-link {
        font-size: 0.95rem;
    }
}
