/* Frontend Styles for Passwordless Magic Link */

.pml-login-container {
    max-width: 480px;
    margin: 40px auto;
    padding: 0 20px;
}

.pml-login-form-wrapper {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.06);
    padding: 40px;
}

.pml-login-title {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
}

.pml-login-description {
    margin: 0 0 30px;
    color: #666;
    text-align: center;
    font-size: 15px;
    line-height: 1.5;
}

.pml-form-group {
    margin-bottom: 24px;
}

.pml-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.pml-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.pml-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.pml-form-actions {
    margin-bottom: 20px;
}

.pml-submit-btn {
    width: 100%;
    padding: 10px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    line-height: 1.2;
}

.pml-btn-text,
.pml-btn-loading {
    display: inline-block;
}

.pml-btn-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pml-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.pml-submit-btn:active {
    transform: translateY(0);
}

.pml-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.pml-btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pml-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: pml-spin 0.6s linear infinite;
}

@keyframes pml-spin {
    to { transform: rotate(360deg); }
}

.pml-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.pml-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.pml-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.pml-info {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e1e8ed;
}

.pml-info-text {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    color: #666;
    font-size: 13px;
    line-height: 1.6;
}

.pml-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    color: #667eea;
}

/* Logged In State */
.pml-logged-in {
    max-width: 480px;
    margin: 40px auto;
    padding: 0 20px;
}

.pml-success-message {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
}

.pml-icon-success {
    width: 64px;
    height: 64px;
    color: #28a745;
    margin: 0 auto 20px;
    display: block;
}

.pml-success-message h4 {
    margin: 0 0 12px;
    font-size: 24px;
    color: #155724;
}

.pml-success-message p {
    margin: 0 0 24px;
    color: #155724;
    font-size: 15px;
}

.pml-logout-link {
    display: inline-block;
    padding: 10px 24px;
    background: #155724;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pml-logout-link:hover {
    background: #0f4419;
    transform: translateY(-2px);
    color: #ffffff;
}

/* Protection Notice */
.pml-protection-notice {
    max-width: 480px;
    margin: 20px auto;
}

/* Responsive */
@media (max-width: 576px) {
    .pml-login-form-wrapper,
    .pml-success-message {
        padding: 30px 24px;
    }
    
    .pml-login-title {
        font-size: 24px;
    }
    
    .pml-login-container,
    .pml-logged-in {
        padding: 0 16px;
    }
}
