/* Sky Toolkit Magic Login (ported from SkyDonate; BuddyBoss-styled) */
.sky-ml-wrap {
    max-width: 100%;
    text-align: center;
}

.sky-ml-logo {
    text-align: center;
    margin-bottom: 20px;
}

.sky-ml-logo img {
    max-height: 60px;
    width: auto;
}

.sky-ml-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
    text-align: center;
}

.sky-ml-subtitle {
    font-size: 15px;
    color: #6b7280;
    margin: 0 0 24px;
    line-height: 1.5;
    text-align: center;
}

.sky-ml-field {
    text-align: left;
    margin-bottom: 20px;
}

.sky-ml-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.sky-ml-field input[type="email"],
.sky-ml-field input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.sky-ml-field input[type="email"]:focus,
.sky-ml-field input[type="text"]:focus {
    border-color: #4f6bed;
    box-shadow: 0 0 0 3px rgba(79, 107, 237, 0.12);
}

.sky-ml-error {
    background: #fef2f2;
    color: #dc2626;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    text-align: left;
}

.sky-ml-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #fff !important;
    background-color: #4f6bed;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.sky-ml-submit:hover {
    background-color: #3b5bdb;
}

.sky-ml-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.sky-ml-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: sky-ml-spin 0.6s linear infinite;
}

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

.sky-ml-donate-link {
    margin-top: 24px;
    text-align: center;
}

.sky-ml-donate-link p {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 4px;
}

.sky-ml-donate-link a {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: underline;
}

/* Sent view */
.sky-ml-envelope-icon {
    margin: 0 auto 20px;
    text-align: center;
}

.sky-ml-envelope-icon svg {
    width: 80px;
    height: 80px;
}

/* Override for inside login-form-box */
.login-form-box .sky-ml-wrap .sky-ml-title {
    background: none;
    padding-right: 0;
    color: #1a1a1a;
}

/* ---- Type-it-back code (Claude-style second option) ---- */
.sky-ml-code {
    margin-top: 22px;
    text-align: center;
}

.sky-ml-code-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #98a1b0;
    font-size: 13px;
    margin-bottom: 14px;
}

.sky-ml-code-divider::before,
.sky-ml-code-divider::after {
    content: "";
    flex: 1;
    border-top: 1px solid #edeff3;
}

.sky-ml-code-label {
    font-size: 14px;
    color: #4e4d54;
    margin: 0 0 10px;
}

#sky-ml-code-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 10px;
    text-align: center;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    margin-bottom: 12px;
}

#sky-ml-code-input::placeholder {
    color: #c4cad6;
    letter-spacing: 10px;
}

#sky-ml-code-input:focus {
    border-color: #4f6bed;
    box-shadow: 0 0 0 3px rgba(79, 107, 237, 0.12);
}
