/* AVANT Magic Link Login - Frontend Styles */

.amll-magic-link-container {
    margin: 20px 0;
    padding: 0;
}

.amll-separator {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.amll-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
}

.amll-separator span {
    position: relative;
    background: #fff;
    padding: 0 15px;
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
}

.amll-magic-link-form {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin-top: 20px;
}

.amll-form-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.amll-form-description {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.amll-form-group {
    margin-bottom: 15px;
}

.amll-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.amll-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.amll-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.amll-submit-button {
    width: 100%;
    padding: 12px 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.amll-submit-button:hover {
    background: #005a87;
}

.amll-submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.amll-button-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

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

.amll-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
}

.amll-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.amll-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Login page specific styles */
#login .amll-magic-link-container {
    margin-top: 30px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

#login .amll-magic-link-form {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.13);
    border: 1px solid #dcdcde;
}

#login .amll-input {
    height: 40px;
    font-size: 24px;
    padding: 3px 10px;
    line-height: 1.33333333;
}

#login .amll-separator {
    margin: 30px 0 20px 0;
}

#login .amll-separator span {
    background: #f0f0f1;
    color: #646970;
    font-size: 13px;
    font-weight: 400;
}

/* Responsive */
@media screen and (max-width: 600px) {
    .amll-magic-link-form {
        padding: 15px;
    }
    
    .amll-form-title {
        font-size: 16px;
    }
    
    .amll-form-description {
        font-size: 13px;
    }
}
